{"type": "func", "start": 6443242640, "end": 6443242695, "name": "sub_1800C1490", "pseudocode": "// \n// sub_1800C1490 from 0x1800c1490 to 0x1800c14c7 (55 bytes)\n// \n// 7 xrefs:\n// > sub_1800B61E0 @ 0x1800b62a1\n// > sub_1800B8690 @ 0x1800b8736\n// > sub_1800B8690 @ 0x1800b8753\n// > sub_1801120C0 @ 0x18011213b\n// > sub_1801120C0 @ 0x180112148\n// > sub_180114120 @ 0x180114237\n// > <???> @ 0x1801fdbb4\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_1800C1490(_QWORD *a1)\n{\n  HANDLE SemaphoreA; // rax\n\n  SemaphoreA = CreateSemaphoreA(nullptr, 0, 0xFFFF, nullptr);\n  if ( !SemaphoreA )\n    return 28;\n  *a1 = SemaphoreA;\n  return 0;\n}", "assembly": "; \n; sub_1800C1490 from 0x1800c1490 to 0x1800c14c7 (55 bytes)\n; \n; 7 xrefs:\n; > sub_1800B61E0 @ 0x1800b62a1\n; > sub_1800B8690 @ 0x1800b8736\n; > sub_1800B8690 @ 0x1800b8753\n; > sub_1801120C0 @ 0x18011213b\n; > sub_1801120C0 @ 0x180112148\n; > sub_180114120 @ 0x180114237\n; > <???> @ 0x1801fdbb4\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\npush    rbx                                                            ; +0x0, 0x1800c1490\nsub     rsp, 20h                                                       ; +0x2, 0x1800c1492\nmov     rbx, rcx                                                       ; +0x6, 0x1800c1496\nxor     r9d, r9d; lpName                                               ; +0x9, 0x1800c1499\nxor     ecx, ecx; lpSemaphoreAttributes                                ; +0xc, 0x1800c149c\nxor     edx, edx; lInitialCount                                        ; +0xe, 0x1800c149e\nmov     r8d, 0FFFFh; lMaximumCount                                     ; +0x10, 0x1800c14a0\ncall    cs:CreateSemaphoreA                                            ; +0x16, 0x1800c14a6\ntest    rax, rax                                                       ; +0x1c, 0x1800c14ac\njnz     short loc_1800C14BC                                            ; +0x1f, 0x1800c14af\nmov     eax, 1Ch                                                       ; +0x21, 0x1800c14b1\nadd     rsp, 20h                                                       ; +0x26, 0x1800c14b6\npop     rbx                                                            ; +0x2a, 0x1800c14ba\nretn                                                                   ; +0x2b, 0x1800c14bb\nmov     [rbx], rax                                                     ; +0x2c, 0x1800c14bc\nxor     eax, eax                                                       ; +0x2f, 0x1800c14bf\nadd     rsp, 20h                                                       ; +0x31, 0x1800c14c1\npop     rbx                                                            ; +0x35, 0x1800c14c5\nretn                                                                   ; +0x36, 0x1800c14c6", "xrefs": ["sub_1800B61E0 @ 0x1800b62a1", "sub_1800B8690 @ 0x1800b8736", "sub_1800B8690 @ 0x1800b8753", "sub_1801120C0 @ 0x18011213b", "sub_1801120C0 @ 0x180112148", "sub_180114120 @ 0x180114237", "<???> @ 0x1801fdbb4"], "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"}