{"type": "func", "start": 6443202400, "end": 6443202581, "name": "sub_1800B7760", "pseudocode": "// \n// sub_1800B7760 from 0x1800b7760 to 0x1800b7815 (181 bytes)\n// \n// 3 xrefs:\n// > sub_1800B4490 @ 0x1800b453c\n// > sub_1800B4490 @ 0x1800b4588\n// > <???> @ 0x1801fd17c\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_1800B7760(SOCKET s, char *buf, int len)\n{\n  __int64 result; // rax\n  __int64 v7; // rdx\n  __int64 v8; // r8\n  __int64 v9; // r9\n  int v10; // [rsp+20h] [rbp-18h] BYREF\n  _DWORD v11[5]; // [rsp+24h] [rbp-14h] BYREF\n\n  v10 = 0;\n  sub_1800C1770(&v10);\n  result = sub_18010A250(s, buf, len);\n  if ( (_DWORD)result == 45 )\n  {\n    while ( 1 )\n    {\n      FMOD_OS_Time_Sleep(1, v7, v8, v9);\n      sub_1800C1770(v11);\n      if ( v11[0] - v10 >= dword_1801AEA78 )\n        break;\n      result = sub_18010A250(s, buf, len);\n      if ( (_DWORD)result != 45 )\n        return result;\n    }\n    return 43;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800B7760 from 0x1800b7760 to 0x1800b7815 (181 bytes)\n; \n; 3 xrefs:\n; > sub_1800B4490 @ 0x1800b453c\n; > sub_1800B4490 @ 0x1800b4588\n; > <???> @ 0x1801fd17c\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, 0x1800b7760\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800b7765\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800b776a\npush    rdi                                                            ; +0xf, 0x1800b776f\nsub     rsp, 30h                                                       ; +0x10, 0x1800b7770\nmov     rsi, rcx                                                       ; +0x14, 0x1800b7774\nxor     ebp, ebp                                                       ; +0x17, 0x1800b7777\nlea     rcx, [rsp+38h+var_18]                                          ; +0x19, 0x1800b7779\nmov     [rsp+38h+var_18], ebp                                          ; +0x1e, 0x1800b777e\nmov     ebx, r8d                                                       ; +0x22, 0x1800b7782\nmov     rdi, rdx                                                       ; +0x25, 0x1800b7785\ncall    sub_1800C1770                                                  ; +0x28, 0x1800b7788\nlea     r9, [rsp+38h+arg_18]                                           ; +0x2d, 0x1800b778d\nmov     [rsp+38h+arg_18], ebp                                          ; +0x32, 0x1800b7792\nmov     r8d, ebx; len                                                  ; +0x36, 0x1800b7796\nmov     rdx, rdi; buf                                                  ; +0x39, 0x1800b7799\nmov     rcx, rsi; s                                                    ; +0x3c, 0x1800b779c\ncall    sub_18010A250                                                  ; +0x3f, 0x1800b779f\ncmp     eax, 2Dh ; '-'                                                 ; +0x44, 0x1800b77a4\njnz     short loc_1800B7800                                            ; +0x47, 0x1800b77a7\nnop     dword ptr [rax+00000000h]                                      ; +0x49, 0x1800b77a9\nmov     ecx, [rsp+38h+arg_18]                                          ; +0x50, 0x1800b77b0\nadd     rdi, rcx                                                       ; +0x54, 0x1800b77b4\nsub     ebx, ecx                                                       ; +0x57, 0x1800b77b7\nmov     ecx, 1                                                         ; +0x59, 0x1800b77b9\ncall    FMOD_OS_Time_Sleep                                             ; +0x5e, 0x1800b77be\nlea     rcx, [rsp+38h+var_14]                                          ; +0x63, 0x1800b77c3\ncall    sub_1800C1770                                                  ; +0x68, 0x1800b77c8\nmov     eax, [rsp+38h+var_14]                                          ; +0x6d, 0x1800b77cd\nsub     eax, [rsp+38h+var_18]                                          ; +0x71, 0x1800b77d1\ncmp     eax, cs:dword_1801AEA78                                        ; +0x75, 0x1800b77d5\njge     short loc_1800B77FB                                            ; +0x7b, 0x1800b77db\nlea     r9, [rsp+38h+arg_18]                                           ; +0x7d, 0x1800b77dd\nmov     [rsp+38h+arg_18], ebp                                          ; +0x82, 0x1800b77e2\nmov     r8d, ebx; len                                                  ; +0x86, 0x1800b77e6\nmov     rdx, rdi; buf                                                  ; +0x89, 0x1800b77e9\nmov     rcx, rsi; s                                                    ; +0x8c, 0x1800b77ec\ncall    sub_18010A250                                                  ; +0x8f, 0x1800b77ef\ncmp     eax, 2Dh ; '-'                                                 ; +0x94, 0x1800b77f4\njz      short loc_1800B77B0                                            ; +0x97, 0x1800b77f7\njmp     short loc_1800B7800                                            ; +0x99, 0x1800b77f9\nmov     eax, 2Bh ; '+'                                                 ; +0x9b, 0x1800b77fb\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xa0, 0x1800b7800\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xa5, 0x1800b7805\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xaa, 0x1800b780a\nadd     rsp, 30h                                                       ; +0xaf, 0x1800b780f\npop     rdi                                                            ; +0xb3, 0x1800b7813\nretn                                                                   ; +0xb4, 0x1800b7814", "xrefs": ["sub_1800B4490 @ 0x1800b453c", "sub_1800B4490 @ 0x1800b4588", "<???> @ 0x1801fd17c"], "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"}