{"type": "func", "start": 5373436432, "end": 5373436737, "name": "MusicDownloadManager::handleIt", "pseudocode": "// \n// MusicDownloadManager::handleIt from 0x140482210 to 0x140482341 (305 bytes)\n// \n// 2 xrefs:\n// > MusicDownloadManager::onProcessHttpRequestCompleted @ 0x1404821c9\n// > <???> @ 0x140928988\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:32:45 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nvoid __fastcall MusicDownloadManager::handleIt(__int64 a1, __int64 a2, char *a3, __int64 a4, int a5)\n{\n  __int64 v8; // rbx\n  __int64 v9; // rax\n  __int64 v10; // rbx\n  __int64 v11; // rax\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  _BYTE v14[32]; // [rsp+30h] [rbp-78h] BYREF\n  _BYTE v15[32]; // [rsp+50h] [rbp-58h] BYREF\n  char *v16; // [rsp+70h] [rbp-38h]\n  __int64 v17; // [rsp+78h] [rbp-30h]\n\n  v16 = a3;\n  v17 = a4;\n  GameToolbox::extractServerPopup(a3);\n  switch ( a5 )\n  {\n    case 21:\n      v12 = sub_14003F4F0((__int64)v15, a4);\n      v13 = sub_14003F4F0((__int64)v14, (__int64)a3);\n      MusicDownloadManager::onGetSongInfoCompleted(a1, v13, v12);\n      break;\n    case 65:\n      v10 = sub_14003F4F0((__int64)v15, a4);\n      v11 = sub_14003F4F0((__int64)v14, (__int64)a3);\n      MusicDownloadManager::onGetCustomContentURLCompleted(a1, v11, v10);\n      break;\n    case 107:\n      v8 = sub_14003F4F0((__int64)v14, a4);\n      v9 = sub_14003F4F0((__int64)v15, (__int64)a3);\n      MusicDownloadManager::onGetAudioFilesizeCompleted(a1, v9, v8);\n      break;\n  }\n  sub_14003D310((__int64)a3);\n  sub_14003D310(a4);\n}", "assembly": "; \n; MusicDownloadManager::handleIt from 0x140482210 to 0x140482341 (305 bytes)\n; \n; 2 xrefs:\n; > MusicDownloadManager::onProcessHttpRequestCompleted @ 0x1404821c9\n; > <???> @ 0x140928988\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:32:45 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140482210\npush    rbp                                                            ; +0x5, 0x140482215\npush    rsi                                                            ; +0x6, 0x140482216\npush    rdi                                                            ; +0x7, 0x140482217\nsub     rsp, 90h                                                       ; +0x8, 0x140482218\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x14048221f\nxor     rax, rsp                                                       ; +0x16, 0x140482226\nmov     [rsp+0A8h+var_28], rax                                         ; +0x19, 0x140482229\nmov     rsi, r9                                                        ; +0x21, 0x140482231\nmov     rdi, r8                                                        ; +0x24, 0x140482234\nmov     rbp, rcx                                                       ; +0x27, 0x140482237\nmov     [rsp+0A8h+var_38], r8                                          ; +0x2a, 0x14048223a\nmov     [rsp+0A8h+var_30], r9                                          ; +0x2f, 0x14048223f\nmov     rcx, r8                                                        ; +0x34, 0x140482244\ncall    GameToolbox__extractServerPopup                                ; +0x37, 0x140482247\nmov     eax, [rsp+0A8h+arg_20]                                         ; +0x3c, 0x14048224c\ncmp     eax, 15h                                                       ; +0x43, 0x140482253\njz      short loc_1404822D6                                            ; +0x46, 0x140482256\ncmp     eax, 41h ; 'A'                                                 ; +0x48, 0x140482258\njz      short loc_14048229E                                            ; +0x4b, 0x14048225b\ncmp     eax, 6Bh ; 'k'                                                 ; +0x4d, 0x14048225d\njnz     loc_14048230D                                                  ; +0x50, 0x140482260\nlea     rax, [rsp+0A8h+var_78]                                         ; +0x56, 0x140482266\nmov     [rsp+0A8h+var_88], rax                                         ; +0x5b, 0x14048226b\nmov     rdx, rsi                                                       ; +0x60, 0x140482270\nlea     rcx, [rsp+0A8h+var_78]                                         ; +0x63, 0x140482273\ncall    sub_14003F4F0                                                  ; +0x68, 0x140482278\nmov     rbx, rax                                                       ; +0x6d, 0x14048227d\nmov     rdx, rdi                                                       ; +0x70, 0x140482280\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x73, 0x140482283\ncall    sub_14003F4F0                                                  ; +0x78, 0x140482288\nnop                                                                    ; +0x7d, 0x14048228d\nmov     r8, rbx                                                        ; +0x7e, 0x14048228e\nmov     rdx, rax                                                       ; +0x81, 0x140482291\nmov     rcx, rbp                                                       ; +0x84, 0x140482294\ncall    MusicDownloadManager__onGetAudioFilesizeCompleted              ; +0x87, 0x140482297\njmp     short loc_14048230D                                            ; +0x8c, 0x14048229c\nlea     rax, [rsp+0A8h+var_58]                                         ; +0x8e, 0x14048229e\nmov     [rsp+0A8h+var_80], rax                                         ; +0x93, 0x1404822a3\nmov     rdx, rsi                                                       ; +0x98, 0x1404822a8\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0x9b, 0x1404822ab\ncall    sub_14003F4F0                                                  ; +0xa0, 0x1404822b0\nmov     rbx, rax                                                       ; +0xa5, 0x1404822b5\nmov     rdx, rdi                                                       ; +0xa8, 0x1404822b8\nlea     rcx, [rsp+0A8h+var_78]                                         ; +0xab, 0x1404822bb\ncall    sub_14003F4F0                                                  ; +0xb0, 0x1404822c0\nnop                                                                    ; +0xb5, 0x1404822c5\nmov     r8, rbx                                                        ; +0xb6, 0x1404822c6\nmov     rdx, rax                                                       ; +0xb9, 0x1404822c9\nmov     rcx, rbp                                                       ; +0xbc, 0x1404822cc\ncall    MusicDownloadManager__onGetCustomContentURLCompleted           ; +0xbf, 0x1404822cf\njmp     short loc_14048230D                                            ; +0xc4, 0x1404822d4\nlea     rax, [rsp+0A8h+var_58]                                         ; +0xc6, 0x1404822d6\nmov     [rsp+0A8h+var_80], rax                                         ; +0xcb, 0x1404822db\nmov     rdx, rsi                                                       ; +0xd0, 0x1404822e0\nlea     rcx, [rsp+0A8h+var_58]                                         ; +0xd3, 0x1404822e3\ncall    sub_14003F4F0                                                  ; +0xd8, 0x1404822e8\nmov     rbx, rax                                                       ; +0xdd, 0x1404822ed\nmov     rdx, rdi                                                       ; +0xe0, 0x1404822f0\nlea     rcx, [rsp+0A8h+var_78]                                         ; +0xe3, 0x1404822f3\ncall    sub_14003F4F0                                                  ; +0xe8, 0x1404822f8\nnop                                                                    ; +0xed, 0x1404822fd\nmov     r8, rbx                                                        ; +0xee, 0x1404822fe\nmov     rdx, rax                                                       ; +0xf1, 0x140482301\nmov     rcx, rbp                                                       ; +0xf4, 0x140482304\ncall    MusicDownloadManager__onGetSongInfoCompleted                   ; +0xf7, 0x140482307\nnop                                                                    ; +0xfc, 0x14048230c\nmov     rcx, rdi                                                       ; +0xfd, 0x14048230d\ncall    sub_14003D310                                                  ; +0x100, 0x140482310\nnop                                                                    ; +0x105, 0x140482315\nmov     rcx, rsi                                                       ; +0x106, 0x140482316\ncall    sub_14003D310                                                  ; +0x109, 0x140482319\nmov     rcx, [rsp+0A8h+var_28]                                         ; +0x10e, 0x14048231e\nxor     rcx, rsp; StackCookie                                          ; +0x116, 0x140482326\ncall    __security_check_cookie                                        ; +0x119, 0x140482329\nmov     rbx, [rsp+0A8h+arg_8]                                          ; +0x11e, 0x14048232e\nadd     rsp, 90h                                                       ; +0x126, 0x140482336\npop     rdi                                                            ; +0x12d, 0x14048233d\npop     rsi                                                            ; +0x12e, 0x14048233e\npop     rbp                                                            ; +0x12f, 0x14048233f\nretn                                                                   ; +0x130, 0x140482340", "xrefs": ["MusicDownloadManager::onProcessHttpRequestCompleted @ 0x1404821c9", "<???> @ 0x140928988"], "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"}