{"type": "func", "start": 6443242736, "end": 6443242772, "name": "sub_1800C14F0", "pseudocode": "// \n// sub_1800C14F0 from 0x1800c14f0 to 0x1800c1514 (36 bytes)\n// \n// 22 xrefs:\n// > sub_1800B5F80 @ 0x1800b5f8a\n// > sub_1800B8460 @ 0x1800b84ae\n// > sub_1800B8460 @ 0x1800b8550\n// > sub_1800B8560 @ 0x1800b8598\n// > sub_1800BB9D0 @ 0x1800bbd68\n// > sub_1800C9FF0 @ 0x1800ca305\n// > sub_1800DF320 @ 0x1800df4a7\n// > sub_1800E31C0 @ 0x1800e36bd\n// > sub_1801122A0 @ 0x18011234d\n// > sub_1801122A0 @ 0x18011235f\n// > sub_1801122A0 @ 0x18011238a\n// > sub_1801122A0 @ 0x18011239c\n// > sub_1801123F0 @ 0x180112424\n// > sub_180112460 @ 0x180112494\n// > sub_1801125B0 @ 0x1801127d7\n// > sub_180112AC0 @ 0x180112bf7\n// > sub_180112D30 @ 0x180112e44\n// > sub_180112F10 @ 0x180112f84\n// > sub_180113720 @ 0x1801137ba\n// > sub_180114BD0 @ 0x180114c99\n// > sub_18011BE10 @ 0x18011bea3\n// > <???> @ 0x1801fdbcc\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:54:03 +0000\n// \n\n__int64 __fastcall sub_1800C14F0(void *a1)\n{\n  BOOL v1; // eax\n  unsigned int v2; // ecx\n\n  v1 = ReleaseSemaphore(a1, 1, nullptr);\n  v2 = 0;\n  if ( !v1 )\n    return 28;\n  return v2;\n}", "assembly": "; \n; sub_1800C14F0 from 0x1800c14f0 to 0x1800c1514 (36 bytes)\n; \n; 22 xrefs:\n; > sub_1800B5F80 @ 0x1800b5f8a\n; > sub_1800B8460 @ 0x1800b84ae\n; > sub_1800B8460 @ 0x1800b8550\n; > sub_1800B8560 @ 0x1800b8598\n; > sub_1800BB9D0 @ 0x1800bbd68\n; > sub_1800C9FF0 @ 0x1800ca305\n; > sub_1800DF320 @ 0x1800df4a7\n; > sub_1800E31C0 @ 0x1800e36bd\n; > sub_1801122A0 @ 0x18011234d\n; > sub_1801122A0 @ 0x18011235f\n; > sub_1801122A0 @ 0x18011238a\n; > sub_1801122A0 @ 0x18011239c\n; > sub_1801123F0 @ 0x180112424\n; > sub_180112460 @ 0x180112494\n; > sub_1801125B0 @ 0x1801127d7\n; > sub_180112AC0 @ 0x180112bf7\n; > sub_180112D30 @ 0x180112e44\n; > sub_180112F10 @ 0x180112f84\n; > sub_180113720 @ 0x1801137ba\n; > sub_180114BD0 @ 0x180114c99\n; > sub_18011BE10 @ 0x18011bea3\n; > <???> @ 0x1801fdbcc\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:54:03 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x1800c14f0\nxor     r8d, r8d; lpPreviousCount                                      ; +0x4, 0x1800c14f4\nlea     edx, [r8+1]; lReleaseCount                                     ; +0x7, 0x1800c14f7\ncall    cs:ReleaseSemaphore                                            ; +0xb, 0x1800c14fb\nxor     ecx, ecx                                                       ; +0x11, 0x1800c1501\nmov     edx, 1Ch                                                       ; +0x13, 0x1800c1503\ntest    eax, eax                                                       ; +0x18, 0x1800c1508\ncmovz   ecx, edx                                                       ; +0x1a, 0x1800c150a\nmov     eax, ecx                                                       ; +0x1d, 0x1800c150d\nadd     rsp, 28h                                                       ; +0x1f, 0x1800c150f\nretn                                                                   ; +0x23, 0x1800c1513", "xrefs": ["sub_1800B5F80 @ 0x1800b5f8a", "sub_1800B8460 @ 0x1800b84ae", "sub_1800B8460 @ 0x1800b8550", "sub_1800B8560 @ 0x1800b8598", "sub_1800BB9D0 @ 0x1800bbd68", "sub_1800C9FF0 @ 0x1800ca305", "sub_1800DF320 @ 0x1800df4a7", "sub_1800E31C0 @ 0x1800e36bd", "sub_1801122A0 @ 0x18011234d", "sub_1801122A0 @ 0x18011235f", "sub_1801122A0 @ 0x18011238a", "sub_1801122A0 @ 0x18011239c", "sub_1801123F0 @ 0x180112424", "sub_180112460 @ 0x180112494", "sub_1801125B0 @ 0x1801127d7", "sub_180112AC0 @ 0x180112bf7", "sub_180112D30 @ 0x180112e44", "sub_180112F10 @ 0x180112f84", "sub_180113720 @ 0x1801137ba", "sub_180114BD0 @ 0x180114c99", "sub_18011BE10 @ 0x18011bea3", "<???> @ 0x1801fdbcc"], "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"}