{"type": "func", "start": 5370330896, "end": 5370331176, "name": "EditorSFXManager::applyMyConfig", "pseudocode": "// \n// EditorSFXManager::applyMyConfig from 0x14018bf10 to 0x14018c028 (280 bytes)\n// \n// 3 xrefs:\n// > EditorSoundConfigInfoLayer::applyConfig @ 0x1401971d6\n// > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140197e40\n// > <???> @ 0x140918f98\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 11:27:41 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar __fastcall EditorSFXManager::applyMyConfig(_QWORD *a1, int a2, unsigned __int8 a3, void **a4)\n{\n  int v5; // r15d\n  char v7; // si\n  struct cocos2d::CCObject *MyConfig; // rax\n  __int64 v10; // rbp\n  bool v11; // di\n  char v12; // bl\n  int v13; // [rsp+20h] [rbp-58h] BYREF\n  _BYTE v14[16]; // [rsp+28h] [rbp-50h] BYREF\n  __int64 v15; // [rsp+38h] [rbp-40h]\n\n  v5 = a3;\n  v7 = 0;\n  v13 = 0;\n  MyConfig = EditorSFXManager::getMyConfig((__int64)a1, a2);\n  if ( !MyConfig )\n  {\n    if ( a4 )\n    {\n      sub_1400405A0(a4, \"List not found.\", 0xFu);\n      return 0;\n    }\n    return 0;\n  }\n  v10 = (__int64)MyConfig + 512;\n  v11 = true;\n  if ( *((_BYTE *)MyConfig + 544) )\n  {\n    sub_14003F4F0((__int64)v14, (__int64)MyConfig + 512);\n    v7 = 3;\n    if ( v15 )\n      v11 = false;\n  }\n  if ( (v7 & 1) != 0 )\n    sub_14003D310((__int64)v14);\n  if ( v11 )\n  {\n    if ( a4 )\n      sub_1400405A0(a4, \"List has no data.\", 0x11u);\n    return 0;\n  }\n  v13 = v5;\n  sub_14003F4F0((__int64)v14, v10);\n  v12 = EditorSFXManager::importFromString(a1, (__int64)v14, &v13, a4);\n  sub_14003D310((__int64)v14);\n  return v12;\n}", "assembly": "; \n; EditorSFXManager::applyMyConfig from 0x14018bf10 to 0x14018c028 (280 bytes)\n; \n; 3 xrefs:\n; > EditorSoundConfigInfoLayer::applyConfig @ 0x1401971d6\n; > EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140197e40\n; > <???> @ 0x140918f98\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 11:27:41 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14018bf10\npush    rbp                                                            ; +0x5, 0x14018bf15\npush    rsi                                                            ; +0x6, 0x14018bf16\npush    rdi                                                            ; +0x7, 0x14018bf17\npush    r14                                                            ; +0x8, 0x14018bf18\npush    r15                                                            ; +0xa, 0x14018bf1a\nsub     rsp, 50h                                                       ; +0xc, 0x14018bf1c\nmov     rax, cs:__security_cookie                                      ; +0x10, 0x14018bf20\nxor     rax, rsp                                                       ; +0x17, 0x14018bf27\nmov     [rsp+78h+var_30], rax                                          ; +0x1a, 0x14018bf2a\nmov     rbx, r9                                                        ; +0x1f, 0x14018bf2f\nmovzx   r15d, r8b                                                      ; +0x22, 0x14018bf32\nmov     r14, rcx                                                       ; +0x26, 0x14018bf36\nxor     esi, esi                                                       ; +0x29, 0x14018bf39\nmov     [rsp+78h+var_58], esi                                          ; +0x2b, 0x14018bf3b\ncall    EditorSFXManager__getMyConfig                                  ; +0x2f, 0x14018bf3f\ntest    rax, rax                                                       ; +0x34, 0x14018bf44\njnz     short loc_14018BF6A                                            ; +0x37, 0x14018bf47\ntest    rbx, rbx                                                       ; +0x39, 0x14018bf49\njz      short loc_14018BFCB                                            ; +0x3c, 0x14018bf4c\nmov     r8d, 0Fh; Size                                                 ; +0x3e, 0x14018bf4e\nlea     rdx, aListNotFound_0; \"List not found.\"                        ; +0x44, 0x14018bf54\nmov     rcx, rbx; void *                                               ; +0x4b, 0x14018bf5b\ncall    sub_1400405A0                                                  ; +0x4e, 0x14018bf5e\nxor     al, al                                                         ; +0x53, 0x14018bf63\njmp     loc_14018C007                                                  ; +0x55, 0x14018bf65\nlea     rbp, [rax+200h]                                                ; +0x5a, 0x14018bf6a\ncmp     [rax+220h], sil                                                ; +0x61, 0x14018bf71\njz      short loc_14018BF99                                            ; +0x68, 0x14018bf78\nmov     rdx, rbp                                                       ; +0x6a, 0x14018bf7a\nlea     rcx, [rsp+78h+var_50]                                          ; +0x6d, 0x14018bf7d\ncall    sub_14003F4F0                                                  ; +0x72, 0x14018bf82\nmov     esi, 3                                                         ; +0x77, 0x14018bf87\ncmp     [rsp+78h+var_40], 0                                            ; +0x7c, 0x14018bf8c\njz      short loc_14018BF99                                            ; +0x82, 0x14018bf92\nxor     dil, dil                                                       ; +0x84, 0x14018bf94\njmp     short loc_14018BF9C                                            ; +0x87, 0x14018bf97\nmov     dil, 1                                                         ; +0x89, 0x14018bf99\ntest    sil, 1                                                         ; +0x8c, 0x14018bf9c\njz      short loc_14018BFAC                                            ; +0x90, 0x14018bfa0\nlea     rcx, [rsp+78h+var_50]                                          ; +0x92, 0x14018bfa2\ncall    sub_14003D310                                                  ; +0x97, 0x14018bfa7\ntest    dil, dil                                                       ; +0x9c, 0x14018bfac\njz      short loc_14018BFCF                                            ; +0x9f, 0x14018bfaf\ntest    rbx, rbx                                                       ; +0xa1, 0x14018bfb1\njz      short loc_14018BFCB                                            ; +0xa4, 0x14018bfb4\nmov     r8d, 11h; Size                                                 ; +0xa6, 0x14018bfb6\nlea     rdx, aListHasNoData; \"List has no data.\"                       ; +0xac, 0x14018bfbc\nmov     rcx, rbx; void *                                               ; +0xb3, 0x14018bfc3\ncall    sub_1400405A0                                                  ; +0xb6, 0x14018bfc6\nxor     al, al                                                         ; +0xbb, 0x14018bfcb\njmp     short loc_14018C007                                            ; +0xbd, 0x14018bfcd\nmov     [rsp+78h+var_58], r15d                                         ; +0xbf, 0x14018bfcf\nmov     rdx, rbp                                                       ; +0xc4, 0x14018bfd4\nlea     rcx, [rsp+78h+var_50]                                          ; +0xc7, 0x14018bfd7\ncall    sub_14003F4F0                                                  ; +0xcc, 0x14018bfdc\nnop                                                                    ; +0xd1, 0x14018bfe1\nmov     r9, rbx                                                        ; +0xd2, 0x14018bfe2\nlea     r8, [rsp+78h+var_58]                                           ; +0xd5, 0x14018bfe5\nlea     rdx, [rsp+78h+var_50]                                          ; +0xda, 0x14018bfea\nmov     rcx, r14                                                       ; +0xdf, 0x14018bfef\ncall    EditorSFXManager__importFromString                             ; +0xe2, 0x14018bff2\nmovzx   ebx, al                                                        ; +0xe7, 0x14018bff7\nlea     rcx, [rsp+78h+var_50]                                          ; +0xea, 0x14018bffa\ncall    sub_14003D310                                                  ; +0xef, 0x14018bfff\nmovzx   eax, bl                                                        ; +0xf4, 0x14018c004\nmov     rcx, [rsp+78h+var_30]                                          ; +0xf7, 0x14018c007\nxor     rcx, rsp; StackCookie                                          ; +0xfc, 0x14018c00c\ncall    __security_check_cookie                                        ; +0xff, 0x14018c00f\nmov     rbx, [rsp+78h+arg_10]                                          ; +0x104, 0x14018c014\nadd     rsp, 50h                                                       ; +0x10c, 0x14018c01c\npop     r15                                                            ; +0x110, 0x14018c020\npop     r14                                                            ; +0x112, 0x14018c022\npop     rdi                                                            ; +0x114, 0x14018c024\npop     rsi                                                            ; +0x115, 0x14018c025\npop     rbp                                                            ; +0x116, 0x14018c026\nretn                                                                   ; +0x117, 0x14018c027", "xrefs": ["EditorSoundConfigInfoLayer::applyConfig @ 0x1401971d6", "EditorSoundConfigInfoLayer::FLAlert_Clicked @ 0x140197e40", "<???> @ 0x140918f98"], "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"}