{"type": "func", "start": 6443633292, "end": 6443633372, "name": "dllmain_crt_dispatch", "pseudocode": "// \n// dllmain_crt_dispatch from 0x180120a8c to 0x180120adc (80 bytes)\n// \n// 4 xrefs:\n// > dllmain_dispatch @ 0x180120ce7\n// > dllmain_dispatch @ 0x180120d59\n// > dllmain_dispatch @ 0x180142b03\n// > <???> @ 0x180202570\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 dllmain_crt_dispatch(Concurrency::details::ScheduleGroupSegmentBase *a1, int a2, void *const a3)\n{\n  int v3; // edx\n  int v4; // edx\n  __int64 result; // rax\n\n  if ( !a2 )\n    return dllmain_crt_process_detach(a3 != nullptr);\n  v3 = a2 - 1;\n  if ( !v3 )\n    return dllmain_crt_process_attach((HINSTANCE)a1, a3);\n  v4 = v3 - 1;\n  if ( v4 )\n  {\n    if ( v4 != 1 )\n      return 1;\n    LOBYTE(result) = _scrt_dllmain_crt_thread_detach();\n  }\n  else\n  {\n    LOBYTE(result) = sub_18012052C(a1);\n  }\n  return (unsigned __int8)result;\n}", "assembly": "; \n; dllmain_crt_dispatch from 0x180120a8c to 0x180120adc (80 bytes)\n; \n; 4 xrefs:\n; > dllmain_dispatch @ 0x180120ce7\n; > dllmain_dispatch @ 0x180120d59\n; > dllmain_dispatch @ 0x180142b03\n; > <???> @ 0x180202570\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\nsub     rsp, 28h                                                       ; +0x0, 0x180120a8c\ntest    edx, edx                                                       ; +0x4, 0x180120a90\njz      short loc_180120ACD                                            ; +0x6, 0x180120a92\nsub     edx, 1                                                         ; +0x8, 0x180120a94\njz      short loc_180120AC1                                            ; +0xb, 0x180120a97\nsub     edx, 1                                                         ; +0xd, 0x180120a99\njz      short loc_180120AB4                                            ; +0x10, 0x180120a9c\ncmp     edx, 1                                                         ; +0x12, 0x180120a9e\njz      short loc_180120AAD                                            ; +0x15, 0x180120aa1\nmov     eax, 1                                                         ; +0x17, 0x180120aa3\nadd     rsp, 28h                                                       ; +0x1c, 0x180120aa8\nretn                                                                   ; +0x20, 0x180120aac\ncall    __scrt_dllmain_crt_thread_detach                               ; +0x21, 0x180120aad\njmp     short loc_180120AB9                                            ; +0x26, 0x180120ab2\ncall    sub_18012052C                                                  ; +0x28, 0x180120ab4\nmovzx   eax, al                                                        ; +0x2d, 0x180120ab9\nadd     rsp, 28h                                                       ; +0x30, 0x180120abc\nretn                                                                   ; +0x34, 0x180120ac0\nmov     rdx, r8; void *                                                ; +0x35, 0x180120ac1\nadd     rsp, 28h                                                       ; +0x38, 0x180120ac4\njmp     ?dllmain_crt_process_attach@@YAHQEAUHINSTANCE__@@QEAX@Z        ; +0x3c, 0x180120ac8\ntest    r8, r8                                                         ; +0x41, 0x180120acd\nsetnz   cl; bool                                                       ; +0x44, 0x180120ad0\nadd     rsp, 28h                                                       ; +0x47, 0x180120ad3\njmp     ?dllmain_crt_process_detach@@YAH_N@Z                           ; +0x4b, 0x180120ad7", "xrefs": ["dllmain_dispatch @ 0x180120ce7", "dllmain_dispatch @ 0x180120d59", "dllmain_dispatch @ 0x180142b03", "<???> @ 0x180202570"], "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"}