{"type": "func", "start": 6442578756, "end": 6442578836, "name": "sub_18001F344", "pseudocode": "// \n// sub_18001F344 from 0x18001f344 to 0x18001f394 (80 bytes)\n// \n// 4 xrefs:\n// > sub_18001F530 @ 0x18001f59a\n// > sub_18001F530 @ 0x18001f60c\n// > sub_18001F530 @ 0x180021154\n// > <???> @ 0x18004d0e8\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 12:15:45 +0000\n// \n\n__int64 __fastcall sub_18001F344(__int64 a1, int a2, __int64 a3)\n{\n  int v3; // edx\n  int v4; // edx\n  __int64 result; // rax\n\n  if ( a2 )\n  {\n    v3 = a2 - 1;\n    if ( v3 )\n    {\n      v4 = v3 - 1;\n      if ( v4 )\n      {\n        if ( v4 != 1 )\n          return 1;\n        LOBYTE(result) = sub_18001FD3C();\n      }\n      else\n      {\n        LOBYTE(result) = sub_18001FD14();\n      }\n      return (unsigned __int8)result;\n    }\n    else\n    {\n      return sub_18001F394(a1, a3);\n    }\n  }\n  else\n  {\n    LOBYTE(a1) = a3 != 0;\n    return sub_18001F4AC(a1);\n  }\n}", "assembly": "; \n; sub_18001F344 from 0x18001f344 to 0x18001f394 (80 bytes)\n; \n; 4 xrefs:\n; > sub_18001F530 @ 0x18001f59a\n; > sub_18001F530 @ 0x18001f60c\n; > sub_18001F530 @ 0x180021154\n; > <???> @ 0x18004d0e8\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 12:15:45 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x18001f344\ntest    edx, edx                                                       ; +0x4, 0x18001f348\njz      short loc_18001F385                                            ; +0x6, 0x18001f34a\nsub     edx, 1                                                         ; +0x8, 0x18001f34c\njz      short loc_18001F379                                            ; +0xb, 0x18001f34f\nsub     edx, 1                                                         ; +0xd, 0x18001f351\njz      short loc_18001F36C                                            ; +0x10, 0x18001f354\ncmp     edx, 1                                                         ; +0x12, 0x18001f356\njz      short loc_18001F365                                            ; +0x15, 0x18001f359\nmov     eax, 1                                                         ; +0x17, 0x18001f35b\nadd     rsp, 28h                                                       ; +0x1c, 0x18001f360\nretn                                                                   ; +0x20, 0x18001f364\ncall    sub_18001FD3C                                                  ; +0x21, 0x18001f365\njmp     short loc_18001F371                                            ; +0x26, 0x18001f36a\ncall    sub_18001FD14                                                  ; +0x28, 0x18001f36c\nmovzx   eax, al                                                        ; +0x2d, 0x18001f371\nadd     rsp, 28h                                                       ; +0x30, 0x18001f374\nretn                                                                   ; +0x34, 0x18001f378\nmov     rdx, r8                                                        ; +0x35, 0x18001f379\nadd     rsp, 28h                                                       ; +0x38, 0x18001f37c\njmp     sub_18001F394                                                  ; +0x3c, 0x18001f380\ntest    r8, r8                                                         ; +0x41, 0x18001f385\nsetnz   cl                                                             ; +0x44, 0x18001f388\nadd     rsp, 28h                                                       ; +0x47, 0x18001f38b\njmp     sub_18001F4AC                                                  ; +0x4b, 0x18001f38f", "xrefs": ["sub_18001F530 @ 0x18001f59a", "sub_18001F530 @ 0x18001f60c", "sub_18001F530 @ 0x180021154", "<???> @ 0x18004d0e8"], "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"}