{"type": "func", "start": 6443531152, "end": 6443531412, "name": "sub_180107B90", "pseudocode": "// \n// sub_180107B90 from 0x180107b90 to 0x180107c94 (260 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801b06a8\n// > <???> @ 0x1802015d4\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:32 +0000\n// \n\n__int64 __fastcall sub_180107B90(__int64 *a1, int a2, _DWORD *a3, _BYTE *a4)\n{\n  __int64 v5; // r9\n  __int64 v6; // rcx\n  char *v8; // rdx\n\n  v5 = *a1;\n  if ( (unsigned int)(a2 - 33) > 0x1F )\n  {\n    if ( a2 )\n      return 31;\n    *a3 = *(_DWORD *)(v5 + 9304);\n    if ( a4 )\n    {\n      switch ( *(_DWORD *)(v5 + 9304) )\n      {\n        case 0:\n          v8 = \"Default\";\n          goto LABEL_16;\n        case 1:\n          v8 = \"All Mono\";\n          goto LABEL_16;\n        case 2:\n          v8 = \"All Stereo\";\n          goto LABEL_16;\n        case 3:\n          v8 = \"All Quad\";\n          goto LABEL_16;\n        case 4:\n          v8 = \"All 5.1\";\n          goto LABEL_16;\n        case 5:\n          v8 = \"All 7.1\";\n          goto LABEL_16;\n        case 6:\n          v8 = \"All LFE\";\n          goto LABEL_16;\n        case 7:\n          v8 = \"All 7.1.4\";\nLABEL_16:\n          sub_1800B7D20(a4, v8, 32);\n          break;\n        default:\n          return 0;\n      }\n    }\n  }\n  else\n  {\n    v6 = v5 + 4LL * a2;\n    *a3 = *(_DWORD *)(v6 + 9176);\n    if ( a4 )\n    {\n      sub_1800B7CA0((int)a4, 32, \"%d\", *(_DWORD *)(v6 + 9176));\n      return 0;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_180107B90 from 0x180107b90 to 0x180107c94 (260 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801b06a8\n; > <???> @ 0x1802015d4\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:32 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x180107b90\nlea     eax, [rdx-21h]                                                 ; +0x4, 0x180107b94\nmov     r10, r9                                                        ; +0x7, 0x180107b97\nmov     r9, [rcx]                                                      ; +0xa, 0x180107b9a\ncmp     eax, 1Fh                                                       ; +0xd, 0x180107b9d\nja      short loc_180107BDD                                            ; +0x10, 0x180107ba0\nmovsxd  rax, edx                                                       ; +0x12, 0x180107ba2\nlea     rcx, [r9+rax*4]                                                ; +0x15, 0x180107ba5\nmov     eax, [rcx+23D8h]                                               ; +0x19, 0x180107ba9\nmov     [r8], eax                                                      ; +0x1f, 0x180107baf\ntest    r10, r10                                                       ; +0x22, 0x180107bb2\njz      def_180107C17; jumptable 0000000180107C17 default case         ; +0x25, 0x180107bb5\nmov     r9d, [rcx+23D8h]                                               ; +0x2b, 0x180107bbb\nlea     r8, aD; \"%d\"                                                   ; +0x32, 0x180107bc2\nmov     rcx, r10                                                       ; +0x39, 0x180107bc9\nmov     edx, 20h ; ' '                                                 ; +0x3c, 0x180107bcc\ncall    sub_1800B7CA0                                                  ; +0x41, 0x180107bd1\nxor     eax, eax                                                       ; +0x46, 0x180107bd6\nadd     rsp, 28h                                                       ; +0x48, 0x180107bd8\nretn                                                                   ; +0x4c, 0x180107bdc\ntest    edx, edx                                                       ; +0x4d, 0x180107bdd\njz      short loc_180107BEB                                            ; +0x4f, 0x180107bdf\nmov     eax, 1Fh                                                       ; +0x51, 0x180107be1\nadd     rsp, 28h                                                       ; +0x56, 0x180107be6\nretn                                                                   ; +0x5a, 0x180107bea\nmov     eax, [r9+2458h]                                                ; +0x5b, 0x180107beb\nmov     [r8], eax                                                      ; +0x62, 0x180107bf2\ntest    r10, r10                                                       ; +0x65, 0x180107bf5\njz      short def_180107C17; jumptable 0000000180107C17 default case   ; +0x68, 0x180107bf8\nmovsxd  rax, dword ptr [r9+2458h]                                      ; +0x6a, 0x180107bfa\ncmp     eax, 7; switch 8 cases                                         ; +0x71, 0x180107c01\nja      short def_180107C17; jumptable 0000000180107C17 default case   ; +0x74, 0x180107c04\nlea     rdx, cs:180000000h                                             ; +0x76, 0x180107c06\nmov     ecx, ds:(jpt_180107C17 - 180000000h)[rdx+rax*4]                ; +0x7d, 0x180107c0d\nadd     rcx, rdx                                                       ; +0x84, 0x180107c14\njmp     rcx; switch jump                                               ; +0x87, 0x180107c17\nlea     rdx, aDefault; jumptable 0000000180107C17 case 0               ; +0x89, 0x180107c19\njmp     short loc_180107C5F                                            ; +0x90, 0x180107c20\nlea     rdx, aAllMono; jumptable 0000000180107C17 case 1               ; +0x92, 0x180107c22\njmp     short loc_180107C5F                                            ; +0x99, 0x180107c29\nlea     rdx, aAllStereo; jumptable 0000000180107C17 case 2             ; +0x9b, 0x180107c2b\njmp     short loc_180107C5F                                            ; +0xa2, 0x180107c32\nlea     rdx, aAllQuad; jumptable 0000000180107C17 case 3               ; +0xa4, 0x180107c34\njmp     short loc_180107C5F                                            ; +0xab, 0x180107c3b\nlea     rdx, aAll51; jumptable 0000000180107C17 case 4                 ; +0xad, 0x180107c3d\njmp     short loc_180107C5F                                            ; +0xb4, 0x180107c44\nlea     rdx, aAll71; jumptable 0000000180107C17 case 5                 ; +0xb6, 0x180107c46\njmp     short loc_180107C5F                                            ; +0xbd, 0x180107c4d\nlea     rdx, aAll714; jumptable 0000000180107C17 case 7                ; +0xbf, 0x180107c4f\njmp     short loc_180107C5F                                            ; +0xc6, 0x180107c56\nlea     rdx, aAllLfe; jumptable 0000000180107C17 case 6                ; +0xc8, 0x180107c58\nmov     r8d, 20h ; ' '                                                 ; +0xcf, 0x180107c5f\nmov     rcx, r10                                                       ; +0xd5, 0x180107c65\ncall    sub_1800B7D20                                                  ; +0xd8, 0x180107c68\nxor     eax, eax; jumptable 0000000180107C17 default case              ; +0xdd, 0x180107c6d\nadd     rsp, 28h                                                       ; +0xdf, 0x180107c6f\nretn                                                                   ; +0xe3, 0x180107c73\ndd offset loc_180107C19 - 180000000h; jump table for switch statement  ; +0xe4, 0x180107c74", "xrefs": ["<???> @ 0x1801b06a8", "<???> @ 0x1802015d4"], "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"}