{"type": "func", "start": 4304319200, "end": 4304319369, "name": "EditorSFXManager::getCustomSFXRawPath", "pseudocode": "// \n// EditorSFXManager::getCustomSFXRawPath from 0x1008eb2e0 to 0x1008eb389 (169 bytes)\n// \n// 3 xrefs:\n// > SFXBrowser::setupSFXBrowser @ 0x1004300b5\n// > SetupSFXPopup::createSFXWidget @ 0x1004b3016\n// > EditorSFXActionConfigLayer::refreshRows @ 0x1008e005b\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:37:53 +0000\n// \n\n_QWORD *__fastcall EditorSFXManager::getCustomSFXRawPath(_QWORD *a1, __int64 a2, int a3, int a4)\n{\n  __int64 *v4; // r8\n  __int64 *v5; // rsi\n  __int64 *v6; // rax\n  __int64 *v8; // rax\n\n  v4 = *(__int64 **)(a2 + 128);\n  if ( !v4 )\n    goto LABEL_13;\n  v5 = (__int64 *)(a2 + 128);\n  v6 = v5;\n  do\n  {\n    if ( *((_DWORD *)v4 + 8) < a4 )\n    {\n      ++v4;\n    }\n    else if ( *((_DWORD *)v4 + 8) <= a4 )\n    {\n      if ( *((_DWORD *)v4 + 9) >= a3 )\n        v6 = v4;\n      v4 += *((_DWORD *)v4 + 9) < a3;\n    }\n    else\n    {\n      v6 = v4;\n    }\n    v4 = (__int64 *)*v4;\n  }\n  while ( v4 );\n  if ( v6 == v5 || *((_DWORD *)v6 + 8) > a4 || *((_DWORD *)v6 + 8) >= a4 && *((_DWORD *)v6 + 9) > a3 )\n  {\nLABEL_13:\n    *(_WORD *)a1 = 0;\n    return a1;\n  }\n  if ( (v6[5] & 1) == 0 )\n  {\n    v8 = v6 + 5;\n    a1[2] = v8[2];\n    *(_OWORD *)a1 = *(_OWORD *)v8;\n    return a1;\n  }\n  sub_10001AD30(a1, (const void *)v6[7], v6[6]);\n  return a1;\n}", "assembly": "; \n; EditorSFXManager::getCustomSFXRawPath from 0x1008eb2e0 to 0x1008eb389 (169 bytes)\n; \n; 3 xrefs:\n; > SFXBrowser::setupSFXBrowser @ 0x1004300b5\n; > SetupSFXPopup::createSFXWidget @ 0x1004b3016\n; > EditorSFXActionConfigLayer::refreshRows @ 0x1008e005b\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:37:53 +0000\n; \npush    rbp                                                            ; +0x0, 0x1008eb2e0\nmov     rbp, rsp                                                       ; +0x1, 0x1008eb2e1\npush    rbx                                                            ; +0x4, 0x1008eb2e4\npush    rax                                                            ; +0x5, 0x1008eb2e5\nmov     r8, [rsi+80h]                                                  ; +0x6, 0x1008eb2e6\ntest    r8, r8                                                         ; +0xd, 0x1008eb2ed\njz      short loc_1008EB33F                                            ; +0x10, 0x1008eb2f0\nsub     rsi, 0FFFFFFFFFFFFFF80h                                        ; +0x12, 0x1008eb2f2\nmov     rax, rsi                                                       ; +0x16, 0x1008eb2f6\njmp     short loc_1008EB30C                                            ; +0x19, 0x1008eb2f9\nalign 20h                                                              ; +0x1b, 0x1008eb2fb\nadd     r8, 8                                                          ; +0x20, 0x1008eb300\nmov     r8, [r8]                                                       ; +0x24, 0x1008eb304\ntest    r8, r8                                                         ; +0x27, 0x1008eb307\njz      short loc_1008EB335                                            ; +0x2a, 0x1008eb30a\ncmp     [r8+20h], ecx                                                  ; +0x2c, 0x1008eb30c\njl      short loc_1008EB300                                            ; +0x30, 0x1008eb310\njle     short loc_1008EB320                                            ; +0x32, 0x1008eb312\nmov     rax, r8                                                        ; +0x34, 0x1008eb314\njmp     short loc_1008EB304                                            ; +0x37, 0x1008eb317\nalign 20h                                                              ; +0x39, 0x1008eb319\nxor     r9d, r9d                                                       ; +0x40, 0x1008eb320\ncmp     [r8+24h], edx                                                  ; +0x43, 0x1008eb323\nsetl    r9b                                                            ; +0x47, 0x1008eb327\ncmovge  rax, r8                                                        ; +0x4b, 0x1008eb32b\nlea     r8, [r8+r9*8]                                                  ; +0x4f, 0x1008eb32f\njmp     short loc_1008EB304                                            ; +0x53, 0x1008eb333\ncmp     rax, rsi                                                       ; +0x55, 0x1008eb335\njz      short loc_1008EB33F                                            ; +0x58, 0x1008eb338\ncmp     [rax+20h], ecx                                                 ; +0x5a, 0x1008eb33a\njle     short loc_1008EB34E                                            ; +0x5d, 0x1008eb33d\nmov     word ptr [rdi], 0                                              ; +0x5f, 0x1008eb33f\nmov     rax, rdi                                                       ; +0x64, 0x1008eb344\nadd     rsp, 8                                                         ; +0x67, 0x1008eb347\npop     rbx                                                            ; +0x6b, 0x1008eb34b\npop     rbp                                                            ; +0x6c, 0x1008eb34c\nretn                                                                   ; +0x6d, 0x1008eb34d\njl      short loc_1008EB355                                            ; +0x6e, 0x1008eb34e\ncmp     [rax+24h], edx                                                 ; +0x70, 0x1008eb350\njg      short loc_1008EB33F                                            ; +0x73, 0x1008eb353\ntest    byte ptr [rax+28h], 1                                          ; +0x75, 0x1008eb355\njnz     short loc_1008EB36F                                            ; +0x79, 0x1008eb359\nadd     rax, 28h ; '('                                                 ; +0x7b, 0x1008eb35b\nmov     rcx, [rax+10h]                                                 ; +0x7f, 0x1008eb35f\nmov     [rdi+10h], rcx                                                 ; +0x83, 0x1008eb363\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x87, 0x1008eb367\nmovups  xmmword ptr [rdi], xmm0                                        ; +0x8a, 0x1008eb36a\njmp     short loc_1008EB344                                            ; +0x8d, 0x1008eb36d\nmov     rdx, [rax+30h]                                                 ; +0x8f, 0x1008eb36f\nmov     rsi, [rax+38h]                                                 ; +0x93, 0x1008eb373\nmov     rbx, rdi                                                       ; +0x97, 0x1008eb377\ncall    sub_10001AD30                                                  ; +0x9a, 0x1008eb37a\nmov     rax, rbx                                                       ; +0x9f, 0x1008eb37f\nadd     rsp, 8                                                         ; +0xa2, 0x1008eb382\npop     rbx                                                            ; +0xa6, 0x1008eb386\npop     rbp                                                            ; +0xa7, 0x1008eb387\nretn                                                                   ; +0xa8, 0x1008eb388", "xrefs": ["SFXBrowser::setupSFXBrowser @ 0x1004300b5", "SetupSFXPopup::createSFXWidget @ 0x1004b3016", "EditorSFXActionConfigLayer::refreshRows @ 0x1008e005b"], "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"}