{"type": "func", "start": 5370807104, "end": 5370807684, "name": "GJAccountManager::handleIt", "pseudocode": "// \n// GJAccountManager::handleIt from 0x140200340 to 0x140200584 (580 bytes)\n// \n// 2 xrefs:\n// > GJAccountManager::onProcessHttpRequestCompleted @ 0x1402002f9\n// > <???> @ 0x1406ccab0\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// Hidden C++ exception states: #wind=4\nvoid __fastcall GJAccountManager::handleIt(__int64 a1, __int64 a2, __int64 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  __int64 v14; // rbx\n  __int64 v15; // rax\n  __int64 v16; // rbx\n  __int64 v17; // rax\n  __int64 v18; // rbx\n  __int64 v19; // rax\n  __int64 v20; // rbx\n  __int64 v21; // rax\n  _BYTE v22[32]; // [rsp+30h] [rbp-31h] BYREF\n  _BYTE v23[32]; // [rsp+50h] [rbp-11h] BYREF\n  __int64 v24; // [rsp+70h] [rbp+Fh]\n  __int64 v25; // [rsp+78h] [rbp+17h]\n\n  v24 = a3;\n  v25 = a4;\n  switch ( a5 )\n  {\n    case 20:\n      v12 = sub_14003BDB0((__int64)v23, a4);\n      v13 = sub_14003BDB0((__int64)v22, a3);\n      GJAccountManager::onBackupAccountCompleted(a1, v13, v12);\n      break;\n    case 21:\n      v14 = sub_14003BDB0((__int64)v23, a4);\n      v15 = sub_14003BDB0((__int64)v22, a3);\n      GJAccountManager::onSyncAccountCompleted(a1, v15, v14);\n      break;\n    case 22:\n      v8 = sub_14003BDB0((__int64)v22, a4);\n      v9 = sub_14003BDB0((__int64)v23, a3);\n      GJAccountManager::onRegisterAccountCompleted(a1, v9, v8);\n      break;\n    case 23:\n      v10 = sub_14003BDB0((__int64)v23, a4);\n      v11 = sub_14003BDB0((__int64)v22, a3);\n      GJAccountManager::onLoginAccountCompleted(a1, v11, v10);\n      break;\n    case 26:\n      v16 = sub_14003BDB0((__int64)v23, a4);\n      v17 = sub_14003BDB0((__int64)v22, a3);\n      GJAccountManager::onUpdateAccountSettingsCompleted(a1, v17, v16);\n      break;\n    case 54:\n      v18 = sub_14003BDB0((__int64)v23, a4);\n      v19 = sub_14003BDB0((__int64)v22, a3);\n      GJAccountManager::onGetAccountBackupURLCompleted(a1, v19, v18);\n      break;\n    case 55:\n      v20 = sub_14003BDB0((__int64)v23, a4);\n      v21 = sub_14003BDB0((__int64)v22, a3);\n      GJAccountManager::onGetAccountSyncURLCompleted(a1, v21, v20);\n      break;\n    default:\n      break;\n  }\n  sub_14003A830(a3);\n  sub_14003A830(a4);\n}", "assembly": "; \n; GJAccountManager::handleIt from 0x140200340 to 0x140200584 (580 bytes)\n; \n; 2 xrefs:\n; > GJAccountManager::onProcessHttpRequestCompleted @ 0x1402002f9\n; > <???> @ 0x1406ccab0\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\npush    rbp                                                            ; +0x0, 0x140200340\npush    rbx                                                            ; +0x2, 0x140200342\npush    rsi                                                            ; +0x3, 0x140200343\npush    rdi                                                            ; +0x4, 0x140200344\npush    r14                                                            ; +0x5, 0x140200345\nlea     rbp, [rsp-2Fh]                                                 ; +0x7, 0x140200347\nsub     rsp, 90h                                                       ; +0xc, 0x14020034c\nmov     rax, cs:__security_cookie                                      ; +0x13, 0x140200353\nxor     rax, rsp                                                       ; +0x1a, 0x14020035a\nmov     [rbp+4Fh+var_30], rax                                          ; +0x1d, 0x14020035d\nmov     rsi, r9                                                        ; +0x21, 0x140200361\nmov     rdi, r8                                                        ; +0x24, 0x140200364\nmov     r14, rcx                                                       ; +0x27, 0x140200367\nmov     [rbp+4Fh+var_40], r8                                           ; +0x2a, 0x14020036a\nmov     [rbp+4Fh+var_38], r9                                           ; +0x2e, 0x14020036e\nmov     eax, [rbp+4Fh+arg_20]                                          ; +0x32, 0x140200372\nadd     eax, 0FFFFFFECh; switch 36 cases                               ; +0x35, 0x140200375\ncmp     eax, 23h                                                       ; +0x38, 0x140200378\nja      def_14020039C; jumptable 000000014020039C default case, cases 24,25,27-53 ; +0x3b, 0x14020037b\ncdqe                                                                   ; +0x41, 0x140200381\nlea     rdx, cs:140000000h                                             ; +0x43, 0x140200383\nmovzx   eax, ds:(byte_140200560 - 140000000h)[rdx+rax]                 ; +0x4a, 0x14020038a\nmov     ecx, ds:(jpt_14020039C - 140000000h)[rdx+rax*4]                ; +0x52, 0x140200392\nadd     rcx, rdx                                                       ; +0x59, 0x140200399\njmp     rcx; switch jump                                               ; +0x5c, 0x14020039c\nlea     rax, [rbp+4Fh+var_80]; jumptable 000000014020039C case 22      ; +0x5e, 0x14020039e\nmov     [rbp+4Fh+var_90], rax                                          ; +0x62, 0x1402003a2\nmov     rdx, rsi                                                       ; +0x66, 0x1402003a6\nlea     rcx, [rbp+4Fh+var_80]                                          ; +0x69, 0x1402003a9\ncall    sub_14003BDB0                                                  ; +0x6d, 0x1402003ad\nmov     rbx, rax                                                       ; +0x72, 0x1402003b2\nmov     rdx, rdi                                                       ; +0x75, 0x1402003b5\nlea     rcx, [rbp+4Fh+var_60]                                          ; +0x78, 0x1402003b8\ncall    sub_14003BDB0                                                  ; +0x7c, 0x1402003bc\nnop                                                                    ; +0x81, 0x1402003c1\nmov     r8, rbx                                                        ; +0x82, 0x1402003c2\nmov     rdx, rax                                                       ; +0x85, 0x1402003c5\nmov     rcx, r14                                                       ; +0x88, 0x1402003c8\ncall    GJAccountManager__onRegisterAccountCompleted                   ; +0x8b, 0x1402003cb\njmp     def_14020039C; jumptable 000000014020039C default case, cases 24,25,27-53 ; +0x90, 0x1402003d0\nlea     rax, [rbp+4Fh+var_60]; jumptable 000000014020039C case 23      ; +0x95, 0x1402003d5\nmov     [rbp+4Fh+var_88], rax                                          ; +0x99, 0x1402003d9\nmov     rdx, rsi                                                       ; +0x9d, 0x1402003dd\nlea     rcx, [rbp+4Fh+var_60]                                          ; +0xa0, 0x1402003e0\ncall    sub_14003BDB0                                                  ; +0xa4, 0x1402003e4\nmov     rbx, rax                                                       ; +0xa9, 0x1402003e9\nmov     rdx, rdi                                                       ; +0xac, 0x1402003ec\nlea     rcx, [rbp+4Fh+var_80]                                          ; +0xaf, 0x1402003ef\ncall    sub_14003BDB0                                                  ; +0xb3, 0x1402003f3\nnop                                                                    ; +0xb8, 0x1402003f8\nmov     r8, rbx                                                        ; +0xb9, 0x1402003f9\nmov     rdx, rax                                                       ; +0xbc, 0x1402003fc\nmov     rcx, r14                                                       ; +0xbf, 0x1402003ff\ncall    GJAccountManager__onLoginAccountCompleted                      ; +0xc2, 0x140200402\njmp     def_14020039C; jumptable 000000014020039C default case, cases 24,25,27-53 ; +0xc7, 0x140200407\nlea     rax, [rbp+4Fh+var_60]; jumptable 000000014020039C case 20      ; +0xcc, 0x14020040c\nmov     [rbp+4Fh+var_88], rax                                          ; +0xd0, 0x140200410\nmov     rdx, rsi                                                       ; +0xd4, 0x140200414\nlea     rcx, [rbp+4Fh+var_60]                                          ; +0xd7, 0x140200417\ncall    sub_14003BDB0                                                  ; +0xdb, 0x14020041b\nmov     rbx, rax                                                       ; +0xe0, 0x140200420\nmov     rdx, rdi                                                       ; +0xe3, 0x140200423\nlea     rcx, [rbp+4Fh+var_80]                                          ; +0xe6, 0x140200426\ncall    sub_14003BDB0                                                  ; +0xea, 0x14020042a\nnop                                                                    ; +0xef, 0x14020042f\nmov     r8, rbx                                                        ; +0xf0, 0x140200430\nmov     rdx, rax                                                       ; +0xf3, 0x140200433\nmov     rcx, r14                                                       ; +0xf6, 0x140200436\ncall    GJAccountManager__onBackupAccountCompleted                     ; +0xf9, 0x140200439\njmp     def_14020039C; jumptable 000000014020039C default case, cases 24,25,27-53 ; +0xfe, 0x14020043e\nlea     rax, [rbp+4Fh+var_60]; jumptable 000000014020039C case 21      ; +0x103, 0x140200443\nmov     [rbp+4Fh+var_88], rax                                          ; +0x107, 0x140200447\nmov     rdx, rsi                                                       ; +0x10b, 0x14020044b\nlea     rcx, [rbp+4Fh+var_60]                                          ; +0x10e, 0x14020044e\ncall    sub_14003BDB0                                                  ; +0x112, 0x140200452\nmov     rbx, rax                                                       ; +0x117, 0x140200457\nmov     rdx, rdi                                                       ; +0x11a, 0x14020045a\nlea     rcx, [rbp+4Fh+var_80]                                          ; +0x11d, 0x14020045d\ncall    sub_14003BDB0                                                  ; +0x121, 0x140200461\nnop                                                                    ; +0x126, 0x140200466\nmov     r8, rbx                                                        ; +0x127, 0x140200467\nmov     rdx, rax                                                       ; +0x12a, 0x14020046a\nmov     rcx, r14                                                       ; +0x12d, 0x14020046d\ncall    GJAccountManager__onSyncAccountCompleted                       ; +0x130, 0x140200470\njmp     def_14020039C; jumptable 000000014020039C default case, cases 24,25,27-53 ; +0x135, 0x140200475\nlea     rax, [rbp+4Fh+var_60]; jumptable 000000014020039C case 26      ; +0x13a, 0x14020047a\nmov     [rbp+4Fh+var_88], rax                                          ; +0x13e, 0x14020047e\nmov     rdx, rsi                                                       ; +0x142, 0x140200482\nlea     rcx, [rbp+4Fh+var_60]                                          ; +0x145, 0x140200485\ncall    sub_14003BDB0                                                  ; +0x149, 0x140200489\nmov     rbx, rax                                                       ; +0x14e, 0x14020048e\nmov     rdx, rdi                                                       ; +0x151, 0x140200491\nlea     rcx, [rbp+4Fh+var_80]                                          ; +0x154, 0x140200494\ncall    sub_14003BDB0                                                  ; +0x158, 0x140200498\nnop                                                                    ; +0x15d, 0x14020049d\nmov     r8, rbx                                                        ; +0x15e, 0x14020049e\nmov     rdx, rax                                                       ; +0x161, 0x1402004a1\nmov     rcx, r14                                                       ; +0x164, 0x1402004a4\ncall    GJAccountManager__onUpdateAccountSettingsCompleted             ; +0x167, 0x1402004a7\njmp     short def_14020039C; jumptable 000000014020039C default case, cases 24,25,27-53 ; +0x16c, 0x1402004ac\nlea     rax, [rbp+4Fh+var_60]; jumptable 000000014020039C case 54      ; +0x16e, 0x1402004ae\nmov     [rbp+4Fh+var_88], rax                                          ; +0x172, 0x1402004b2\nmov     rdx, rsi                                                       ; +0x176, 0x1402004b6\nlea     rcx, [rbp+4Fh+var_60]                                          ; +0x179, 0x1402004b9\ncall    sub_14003BDB0                                                  ; +0x17d, 0x1402004bd\nmov     rbx, rax                                                       ; +0x182, 0x1402004c2\nmov     rdx, rdi                                                       ; +0x185, 0x1402004c5\nlea     rcx, [rbp+4Fh+var_80]                                          ; +0x188, 0x1402004c8\ncall    sub_14003BDB0                                                  ; +0x18c, 0x1402004cc\nnop                                                                    ; +0x191, 0x1402004d1\nmov     r8, rbx                                                        ; +0x192, 0x1402004d2\nmov     rdx, rax                                                       ; +0x195, 0x1402004d5\nmov     rcx, r14                                                       ; +0x198, 0x1402004d8\ncall    GJAccountManager__onGetAccountBackupURLCompleted               ; +0x19b, 0x1402004db\njmp     short def_14020039C; jumptable 000000014020039C default case, cases 24,25,27-53 ; +0x1a0, 0x1402004e0\nlea     rax, [rbp+4Fh+var_60]; jumptable 000000014020039C case 55      ; +0x1a2, 0x1402004e2\nmov     [rbp+4Fh+var_88], rax                                          ; +0x1a6, 0x1402004e6\nmov     rdx, rsi                                                       ; +0x1aa, 0x1402004ea\nlea     rcx, [rbp+4Fh+var_60]                                          ; +0x1ad, 0x1402004ed\ncall    sub_14003BDB0                                                  ; +0x1b1, 0x1402004f1\nmov     rbx, rax                                                       ; +0x1b6, 0x1402004f6\nmov     rdx, rdi                                                       ; +0x1b9, 0x1402004f9\nlea     rcx, [rbp+4Fh+var_80]                                          ; +0x1bc, 0x1402004fc\ncall    sub_14003BDB0                                                  ; +0x1c0, 0x140200500\nnop                                                                    ; +0x1c5, 0x140200505\nmov     r8, rbx                                                        ; +0x1c6, 0x140200506\nmov     rdx, rax                                                       ; +0x1c9, 0x140200509\nmov     rcx, r14                                                       ; +0x1cc, 0x14020050c\ncall    GJAccountManager__onGetAccountSyncURLCompleted                 ; +0x1cf, 0x14020050f\nnop                                                                    ; +0x1d4, 0x140200514\nmov     rcx, rdi; jumptable 000000014020039C default case, cases 24,25,27-53 ; +0x1d5, 0x140200515\ncall    sub_14003A830                                                  ; +0x1d8, 0x140200518\nnop                                                                    ; +0x1dd, 0x14020051d\nmov     rcx, rsi                                                       ; +0x1de, 0x14020051e\ncall    sub_14003A830                                                  ; +0x1e1, 0x140200521\nmov     rcx, [rbp+4Fh+var_30]                                          ; +0x1e6, 0x140200526\nxor     rcx, rsp; StackCookie                                          ; +0x1ea, 0x14020052a\ncall    __security_check_cookie                                        ; +0x1ed, 0x14020052d\nadd     rsp, 90h                                                       ; +0x1f2, 0x140200532\npop     r14                                                            ; +0x1f9, 0x140200539\npop     rdi                                                            ; +0x1fb, 0x14020053b\npop     rsi                                                            ; +0x1fc, 0x14020053c\npop     rbx                                                            ; +0x1fd, 0x14020053d\npop     rbp                                                            ; +0x1fe, 0x14020053e\nretn                                                                   ; +0x1ff, 0x14020053f\ndd offset loc_14020040C - 140000000h; jump table for switch statement  ; +0x200, 0x140200540\ndb      0,     1,     2,     3; indirect table for switch statement    ; +0x220, 0x140200560", "xrefs": ["GJAccountManager::onProcessHttpRequestCompleted @ 0x1402002f9", "<???> @ 0x1406ccab0"], "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"}