{"type": "func", "start": 6443541072, "end": 6443541237, "name": "sub_18010A250", "pseudocode": "// \n// sub_18010A250 from 0x18010a250 to 0x18010a2f5 (165 bytes)\n// \n// 8 xrefs:\n// > sub_1800B7760 @ 0x1800b779f\n// > sub_1800B7760 @ 0x1800b77ef\n// > sub_1800B7820 @ 0x1800b78a3\n// > sub_1800B7820 @ 0x1800b78f0\n// > sub_1801125B0 @ 0x1801125f3\n// > sub_1801125B0 @ 0x18011272b\n// > sub_1801125B0 @ 0x180112833\n// > <???> @ 0x1802017a8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 10:54:32 +0000\n// \n\n__int64 __fastcall sub_18010A250(SOCKET s, char *buf, int len, _DWORD *a4)\n{\n  int v8; // eax\n  int Error; // eax\n\n  *a4 = 0;\n  while ( len )\n  {\n    v8 = recv(s, buf, len, 0);\n    if ( v8 == -1 )\n    {\n      Error = WSAGetLastError();\n      if ( Error == 10035 )\n        return 45;\n      if ( Error != 10054 && Error != 10004 )\n        return 43;\n      return 16;\n    }\n    if ( !v8 )\n      return 16;\n    *a4 += v8;\n    len -= v8;\n    buf += v8;\n  }\n  return 0;\n}", "assembly": "; \n; sub_18010A250 from 0x18010a250 to 0x18010a2f5 (165 bytes)\n; \n; 8 xrefs:\n; > sub_1800B7760 @ 0x1800b779f\n; > sub_1800B7760 @ 0x1800b77ef\n; > sub_1800B7820 @ 0x1800b78a3\n; > sub_1800B7820 @ 0x1800b78f0\n; > sub_1801125B0 @ 0x1801125f3\n; > sub_1801125B0 @ 0x18011272b\n; > sub_1801125B0 @ 0x180112833\n; > <???> @ 0x1802017a8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 10:54:32 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18010a250\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18010a255\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x18010a25a\npush    r14                                                            ; +0xf, 0x18010a25f\nsub     rsp, 30h                                                       ; +0x11, 0x18010a261\nmov     rsi, r9                                                        ; +0x15, 0x18010a265\nmov     ebx, r8d                                                       ; +0x18, 0x18010a268\nmov     rdi, rdx                                                       ; +0x1b, 0x18010a26b\nmov     r14, rcx                                                       ; +0x1e, 0x18010a26e\nmov     dword ptr [r9], 0                                              ; +0x21, 0x18010a271\ntest    ebx, ebx                                                       ; +0x28, 0x18010a278\njz      short loc_18010A2DD                                            ; +0x2a, 0x18010a27a\nxor     r9d, r9d; flags                                                ; +0x2c, 0x18010a27c\nmov     r8d, ebx; len                                                  ; +0x2f, 0x18010a27f\nmov     rdx, rdi; buf                                                  ; +0x32, 0x18010a282\nmov     rcx, r14; s                                                    ; +0x35, 0x18010a285\ncall    cs:recv                                                        ; +0x38, 0x18010a288\nmov     [rsp+38h+var_18], eax                                          ; +0x3e, 0x18010a28e\ncmp     eax, 0FFFFFFFFh                                                ; +0x42, 0x18010a292\njnz     short loc_18010A2C0                                            ; +0x45, 0x18010a295\ncall    cs:WSAGetLastError                                             ; +0x47, 0x18010a297\ncmp     eax, 2733h                                                     ; +0x4d, 0x18010a29d\njnz     short loc_18010A2AB                                            ; +0x52, 0x18010a2a2\nmov     eax, 2Dh ; '-'                                                 ; +0x54, 0x18010a2a4\njmp     short loc_18010A2DF                                            ; +0x59, 0x18010a2a9\ncmp     eax, 2746h                                                     ; +0x5b, 0x18010a2ab\njz      short loc_18010A2C4                                            ; +0x60, 0x18010a2b0\ncmp     eax, 2714h                                                     ; +0x62, 0x18010a2b2\njz      short loc_18010A2C4                                            ; +0x67, 0x18010a2b7\nmov     eax, 2Bh ; '+'                                                 ; +0x69, 0x18010a2b9\njmp     short loc_18010A2DF                                            ; +0x6e, 0x18010a2be\ntest    eax, eax                                                       ; +0x70, 0x18010a2c0\njnz     short loc_18010A2CB                                            ; +0x72, 0x18010a2c2\nmov     eax, 10h                                                       ; +0x74, 0x18010a2c4\njmp     short loc_18010A2DF                                            ; +0x79, 0x18010a2c9\nadd     [rsi], eax                                                     ; +0x7b, 0x18010a2cb\nsub     ebx, eax                                                       ; +0x7d, 0x18010a2cd\ncdqe                                                                   ; +0x7f, 0x18010a2cf\nadd     rdi, rax                                                       ; +0x81, 0x18010a2d1\njmp     short loc_18010A278                                            ; +0x84, 0x18010a2d4\nmov     eax, 2Bh ; '+'                                                 ; +0x86, 0x18010a2d6\njmp     short loc_18010A2DF                                            ; +0x8b, 0x18010a2db\nxor     eax, eax                                                       ; +0x8d, 0x18010a2dd\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8f, 0x18010a2df\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x94, 0x18010a2e4\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x99, 0x18010a2e9\nadd     rsp, 30h                                                       ; +0x9e, 0x18010a2ee\npop     r14                                                            ; +0xa2, 0x18010a2f2\nretn                                                                   ; +0xa4, 0x18010a2f4", "xrefs": ["sub_1800B7760 @ 0x1800b779f", "sub_1800B7760 @ 0x1800b77ef", "sub_1800B7820 @ 0x1800b78a3", "sub_1800B7820 @ 0x1800b78f0", "sub_1801125B0 @ 0x1801125f3", "sub_1801125B0 @ 0x18011272b", "sub_1801125B0 @ 0x180112833", "<???> @ 0x1802017a8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}