{"type": "func", "start": 6443541520, "end": 6443541661, "name": "sub_18010A410", "pseudocode": "// \n// sub_18010A410 from 0x18010a410 to 0x18010a49d (141 bytes)\n// \n// 3 xrefs:\n// > sub_1800B4680 @ 0x1800b48dd\n// > sub_180112AC0 @ 0x180112c55\n// > <???> @ 0x1802017cc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n__int64 __fastcall sub_18010A410(SOCKET s, char *buf, int len, _DWORD *a4)\n{\n  int v8; // eax\n  int Error; // eax\n  unsigned int v10; // ecx\n\n  *a4 = 0;\n  while ( 1 )\n  {\n    if ( !len )\n      return 0;\n    v8 = send(s, buf, len, 0);\n    if ( v8 == -1 )\n      break;\n    *a4 += v8;\n    len -= v8;\n    buf += v8;\n  }\n  Error = WSAGetLastError();\n  v10 = 43;\n  if ( Error == 10035 )\n    return 45;\n  return v10;\n}", "assembly": "; \n; sub_18010A410 from 0x18010a410 to 0x18010a49d (141 bytes)\n; \n; 3 xrefs:\n; > sub_1800B4680 @ 0x1800b48dd\n; > sub_180112AC0 @ 0x180112c55\n; > <???> @ 0x1802017cc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18010a410\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18010a415\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x18010a41a\npush    r14                                                            ; +0xf, 0x18010a41f\nsub     rsp, 30h                                                       ; +0x11, 0x18010a421\nmov     rsi, r9                                                        ; +0x15, 0x18010a425\nmov     ebx, r8d                                                       ; +0x18, 0x18010a428\nmov     rdi, rdx                                                       ; +0x1b, 0x18010a42b\nmov     r14, rcx                                                       ; +0x1e, 0x18010a42e\nmov     dword ptr [r9], 0                                              ; +0x21, 0x18010a431\ntest    ebx, ebx                                                       ; +0x28, 0x18010a438\njz      short loc_18010A485                                            ; +0x2a, 0x18010a43a\nxor     r9d, r9d; flags                                                ; +0x2c, 0x18010a43c\nmov     r8d, ebx; len                                                  ; +0x2f, 0x18010a43f\nmov     rdx, rdi; buf                                                  ; +0x32, 0x18010a442\nmov     rcx, r14; s                                                    ; +0x35, 0x18010a445\ncall    cs:send                                                        ; +0x38, 0x18010a448\nmov     [rsp+38h+var_18], eax                                          ; +0x3e, 0x18010a44e\ncmp     eax, 0FFFFFFFFh                                                ; +0x42, 0x18010a452\njnz     short loc_18010A473                                            ; +0x45, 0x18010a455\ncall    cs:WSAGetLastError                                             ; +0x47, 0x18010a457\nmov     ecx, 2Bh ; '+'                                                 ; +0x4d, 0x18010a45d\nmov     edx, 2Dh ; '-'                                                 ; +0x52, 0x18010a462\ncmp     eax, 2733h                                                     ; +0x57, 0x18010a467\ncmovz   ecx, edx                                                       ; +0x5c, 0x18010a46c\nmov     eax, ecx                                                       ; +0x5f, 0x18010a46f\njmp     short loc_18010A487                                            ; +0x61, 0x18010a471\nadd     [rsi], eax                                                     ; +0x63, 0x18010a473\nsub     ebx, eax                                                       ; +0x65, 0x18010a475\ncdqe                                                                   ; +0x67, 0x18010a477\nadd     rdi, rax                                                       ; +0x69, 0x18010a479\njmp     short loc_18010A438                                            ; +0x6c, 0x18010a47c\nmov     eax, 2Bh ; '+'                                                 ; +0x6e, 0x18010a47e\njmp     short loc_18010A487                                            ; +0x73, 0x18010a483\nxor     eax, eax                                                       ; +0x75, 0x18010a485\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x77, 0x18010a487\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x7c, 0x18010a48c\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x81, 0x18010a491\nadd     rsp, 30h                                                       ; +0x86, 0x18010a496\npop     r14                                                            ; +0x8a, 0x18010a49a\nretn                                                                   ; +0x8c, 0x18010a49c", "xrefs": ["sub_1800B4680 @ 0x1800b48dd", "sub_180112AC0 @ 0x180112c55", "<???> @ 0x1802017cc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}