{"type": "func", "start": 6442611552, "end": 6442611653, "name": "sub_180027360", "pseudocode": "// \n// sub_180027360 from 0x180027360 to 0x1800273c5 (101 bytes)\n// \n// 2 xrefs:\n// > sub_180027A20 @ 0x180027c42\n// > sub_180027A20 @ 0x180027c5c\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:53:00 +0000\n// \n\n__int64 __fastcall sub_180027360(__int64 a1)\n{\n  __int64 v1; // r8\n  int v2; // eax\n  int v3; // edx\n  bool v4; // cc\n  int v5; // edx\n  int v6; // eax\n  int v7; // edx\n\n  v1 = *(_QWORD *)(a1 + 8);\n  v2 = *(_DWORD *)(a1 + 256);\n  v3 = *(_DWORD *)(v1 + 64);\n  v4 = v3 <= v2;\n  if ( v3 < v2 )\n  {\n    v5 = v3 + 4 * *(unsigned __int8 *)(a1 + 260);\n    *(_DWORD *)(v1 + 64) = v5;\n    v6 = *(_DWORD *)(a1 + 256);\n    if ( v5 <= v6 )\n      goto LABEL_8;\n    *(_DWORD *)(v1 + 64) = v6;\n    v3 = v6;\n    v4 = v6 <= *(_DWORD *)(a1 + 256);\n  }\n  if ( !v4 )\n  {\n    v7 = v3 - 4 * *(unsigned __int8 *)(a1 + 260);\n    *(_DWORD *)(v1 + 64) = v7;\n    if ( v7 < *(_DWORD *)(a1 + 256) )\n      v7 = *(_DWORD *)(a1 + 256);\n    *(_DWORD *)(v1 + 64) = v7;\n  }\nLABEL_8:\n  *(_BYTE *)(v1 + 60) |= 1u;\n  return 0;\n}", "assembly": "; \n; sub_180027360 from 0x180027360 to 0x1800273c5 (101 bytes)\n; \n; 2 xrefs:\n; > sub_180027A20 @ 0x180027c42\n; > sub_180027A20 @ 0x180027c5c\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:53:00 +0000\n; \nmov     r8, [rcx+8]                                                    ; +0x0, 0x180027360\nmov     eax, [rcx+100h]                                                ; +0x4, 0x180027364\nmov     edx, [r8+40h]                                                  ; +0xa, 0x18002736a\ncmp     edx, eax                                                       ; +0xe, 0x18002736e\njge     short loc_18002739C                                            ; +0x10, 0x180027370\nmovzx   eax, byte ptr [rcx+104h]                                       ; +0x12, 0x180027372\nlea     edx, [rdx+rax*4]                                               ; +0x19, 0x180027379\nmov     [r8+40h], edx                                                  ; +0x1c, 0x18002737c\nmov     eax, [rcx+100h]                                                ; +0x20, 0x180027380\nmov     r9d, eax                                                       ; +0x26, 0x180027386\ncmp     edx, eax                                                       ; +0x29, 0x180027389\njle     short loc_1800273BD                                            ; +0x2b, 0x18002738b\nmov     [r8+40h], eax                                                  ; +0x2d, 0x18002738d\nmov     edx, r9d                                                       ; +0x31, 0x180027391\nmov     eax, [rcx+100h]                                                ; +0x34, 0x180027394\ncmp     edx, eax                                                       ; +0x3a, 0x18002739a\njle     short loc_1800273BD                                            ; +0x3c, 0x18002739c\nmovzx   eax, byte ptr [rcx+104h]                                       ; +0x3e, 0x18002739e\nshl     eax, 2                                                         ; +0x45, 0x1800273a5\nsub     edx, eax                                                       ; +0x48, 0x1800273a8\nmov     [r8+40h], edx                                                  ; +0x4a, 0x1800273aa\nmov     eax, [rcx+100h]                                                ; +0x4e, 0x1800273ae\ncmp     edx, eax                                                       ; +0x54, 0x1800273b4\ncmovl   edx, eax                                                       ; +0x56, 0x1800273b6\nmov     [r8+40h], edx                                                  ; +0x59, 0x1800273b9\nor      byte ptr [r8+3Ch], 1                                           ; +0x5d, 0x1800273bd\nxor     eax, eax                                                       ; +0x62, 0x1800273c2\nretn                                                                   ; +0x64, 0x1800273c4", "xrefs": ["sub_180027A20 @ 0x180027c42", "sub_180027A20 @ 0x180027c5c"], "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"}