// // GameLevelManager::handleIt from 0x140142ff0 to 0x140144098 (4264 bytes) // // 2 xrefs: // > GameLevelManager::onProcessHttpRequestCompleted @ 0x140142faf // > @ 0x1406ca500 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=15 void __fastcall GameLevelManager::handleIt(__int64 **a1, __int64 a2, __int64 a3, __int64 a4, int a5) { __int64 v8; // rbx __int64 v9; // rax int v10; // ebx struct _RTC_ALLOCA_NODE *v11; // rax __int64 v12; // rbx __int64 v13; // rax __int64 v14; // rsi __int64 v15; // rdi __int64 v16; // rbx __int64 v17; // rax __int64 v18; // rcx __int64 v19; // rsi __int64 v20; // rbx __int64 v21; // rax __int64 v22; // r9 __int64 v23; // rbx __int64 v24; // rax __int64 v25; // rbx __int64 v26; // rax __int64 v27; // rbx __int64 v28; // rax __int64 v29; // rdi const void **v30; // rbx const void *v31; // rcx size_t v32; // r8 unsigned __int64 v33; // rbx const wchar_t *v34; // rax struct __crt_locale_pointers *v35; // r9 __int64 v36; // rbx __int64 v37; // rax __int64 v38; // rbx __int64 v39; // rax __int64 v40; // rbx __int64 v41; // rax __int64 v42; // rbx __int64 v43; // rax __int64 v44; // rbx __int64 v45; // rax __int64 v46; // rbx __int64 v47; // rax __int64 v48; // rbx __int64 v49; // rax __int64 v50; // rbx __int64 v51; // rax __int64 v52; // rbx __int64 v53; // rax __int64 v54; // rbx __int64 v55; // rax __int64 v56; // rbx __int64 v57; // rax __int64 v58; // rbx __int64 v59; // rax __int64 v60; // rbx __int64 v61; // rax __int64 v62; // rbx __int64 v63; // rdi _BYTE *v64; // rdx size_t v65; // r8 void *v66; // rcx __int64 v67; // rbx __int64 v68; // rax __int64 v69; // rbx __int64 v70; // rax __int64 v71; // rbx __int64 v72; // rax __int64 v73; // rbx __int64 v74; // rax __int64 v75; // rbx __int64 v76; // rax __int64 v77; // rbx __int64 v78; // rax __int64 v79; // rbx __int64 v80; // rax __int64 v81; // rbx __int64 v82; // rax __int64 v83; // rbx __int64 v84; // rax __int64 v85; // rbx __int64 v86; // rax __int64 v87; // rbx __int64 v88; // rax __int64 v89; // rbx __int64 v90; // rax __int64 v91; // rbx __int64 v92; // rax __int64 v93; // rbx __int64 v94; // rax __int64 v95; // rbx __int64 v96; // rax __int64 v97; // rbx __int64 v98; // rax __int64 v99; // rbx __int64 v100; // rax __int64 v101; // rbx __int64 v102; // rax __int64 v103; // rbx __int64 v104; // rax __int64 v105; // rbx __int64 v106; // rax __int64 v107; // rbx __int64 v108; // rax __int64 v109; // rbx __int64 v110; // rax __int64 v111; // rdi const char *v112; // rsi const char *v113; // rcx int v114; // ebx const char *v115; // rcx GameLevelManager *v116; // rcx int v117; // r13d __int64 *v118; // rbx __int64 v119; // rbx GJLevelList *v120; // rax GJLevelList *LocalLevelList; // rax __int64 *v122; // rcx __int64 v123; // rdi const void **v124; // rbx const char *v125; // rcx unsigned int v126; // r13d const void *v127; // rcx unsigned __int64 v128; // rsi size_t v129; // r8 __int64 *v130; // rcx __int64 *v131; // rcx __int64 v132; // rbx __int64 v133; // rax __int64 v134; // rbx __int64 v135; // rax __int64 v136; // rax __int64 v137; // [rsp+28h] [rbp-B9h] _BYTE v138[32]; // [rsp+30h] [rbp-B1h] BYREF _BYTE v139[32]; // [rsp+50h] [rbp-91h] BYREF __int128 *p_Buf2; // [rsp+70h] [rbp-71h] _BYTE *v141; // [rsp+78h] [rbp-69h] _BYTE v142[32]; // [rsp+80h] [rbp-61h] BYREF __int64 v143; // [rsp+A0h] [rbp-41h] __int64 v144; // [rsp+A8h] [rbp-39h] __int128 Buf2; // [rsp+B0h] [rbp-31h] BYREF __int128 v146; // [rsp+C0h] [rbp-21h] v143 = a3; v144 = a4; switch ( a5 ) { case 1: p_Buf2 = &Buf2; v8 = sub_14003BDB0((__int64)&Buf2, a4); v9 = sub_14003BDB0((__int64)v142, a3); GameLevelManager::onUploadLevelCompleted(a1, v9, v8); break; case 2: v141 = v142; v10 = sub_14003BDB0((__int64)v142, a4); v11 = (struct _RTC_ALLOCA_NODE *)sub_14003BDB0((__int64)&Buf2, a3); GameLevelManager::onGetOnlineLevelsCompleted(a1, v11, v10); break; case 3: v141 = v142; v12 = sub_14003BDB0((__int64)v142, a4); v13 = sub_14003BDB0((__int64)&Buf2, a3); GameLevelManager::onGetMapPacksCompleted(a1, v13, v12); break; case 4: v14 = sub_14003BDB0((__int64)v142, a4); p_Buf2 = (__int128 *)v14; v15 = sub_14003BDB0((__int64)&Buf2, a3); v141 = (_BYTE *)v15; v16 = sub_14003BDB0((__int64)v138, v14); v17 = sub_14003BDB0((__int64)v139, v15); GameLevelManager::processOnDownloadLevelCompleted(a1, v17, v16, 0, v138); sub_14003A830(v15); v18 = v14; goto LABEL_95; case 5: v19 = sub_14003BDB0((__int64)v139, a4); v137 = sub_14003BDB0((__int64)v138, a3); v141 = v142; v20 = sub_14003BDB0((__int64)v142, v19); v21 = sub_14003BDB0((__int64)&Buf2, v137); LOBYTE(v22) = 1; GameLevelManager::processOnDownloadLevelCompleted(a1, v21, v20, v22, v19); sub_14003A830(v137); v18 = v19; goto LABEL_95; case 6: v23 = sub_14003BDB0((__int64)v139, a4); v24 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onRateStarsCompleted(a1, v24, v23); break; case 7: v25 = sub_14003BDB0((__int64)v139, a4); v26 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onDeleteServerLevelCompleted(a1, v26, v25); break; case 8: v27 = sub_14003BDB0((__int64)v139, a4); v28 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onSetLevelStarsCompleted(a1, v28, v27); break; case 9: v29 = sub_14003BDB0((__int64)v139, a4); v30 = (const void **)sub_14003BDB0((__int64)v138, a3); Buf2 = 0; *(_QWORD *)&v146 = 2; *((_QWORD *)&v146 + 1) = 15; strcpy((char *)&Buf2, "-1"); v31 = v30; if ( (unsigned __int64)v30[3] > 0xF ) v31 = *v30; v32 = (size_t)v30[2]; if ( v32 > 2 ) v32 = 2; goto LABEL_14; case 10: v33 = sub_14003BDB0((__int64)v139, a4); v34 = (const wchar_t *)sub_14003BDB0((__int64)v138, a3); GameLevelManager::onUpdateUserScoreCompleted((char *)a1, v34, v33, v35); break; case 11: v36 = sub_14003BDB0((__int64)v139, a4); v37 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetLeaderboardScoresCompleted(a1, v37, v36); break; case 12: v38 = sub_14003BDB0((__int64)v139, a4); v39 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetLevelCommentsCompleted(a1, v39, v38); break; case 13: v42 = sub_14003BDB0((__int64)v139, a4); v43 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onUploadCommentCompleted(a1, v43, v42); break; case 14: v44 = sub_14003BDB0((__int64)v139, a4); v45 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onDeleteCommentCompleted(a1, v45, v44); break; case 15: v46 = sub_14003BDB0((__int64)v139, a4); v47 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onLikeItemCompleted(a1, v47, v46); break; case 16: v48 = sub_14003BDB0((__int64)v139, a4); v49 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onRestoreItemsCompleted(a1, v49, v48); break; case 17: v29 = sub_14003BDB0((__int64)v139, a4); v30 = (const void **)sub_14003BDB0((__int64)v138, a3); Buf2 = 0; *(_QWORD *)&v146 = 2; *((_QWORD *)&v146 + 1) = 15; strcpy((char *)&Buf2, "-1"); v31 = v30; if ( (unsigned __int64)v30[3] > 0xF ) v31 = *v30; v32 = (size_t)v30[2]; if ( v32 > 2 ) v32 = 2; LABEL_14: memcmp(v31, &Buf2, v32); sub_14003A830((__int64)v30); v18 = v29; goto LABEL_95; case 18: v50 = sub_14003BDB0((__int64)v139, a4); v51 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onReportLevelCompleted(a1, v51, v50); break; case 24: v52 = sub_14003BDB0((__int64)v139, a4); v53 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onUpdateDescriptionCompleted(a1, v53, v52); break; case 25: v40 = sub_14003BDB0((__int64)v139, a4); v41 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetAccountCommentsCompleted(a1, v41, v40); break; case 27: v54 = sub_14003BDB0((__int64)v139, a4); v55 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetGJUserInfoCompleted(a1, v55, v54); break; case 28: v75 = sub_14003BDB0((__int64)v139, a4); v76 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetFriendRequestsCompleted(a1, v76, v75); break; case 29: v56 = sub_14003BDB0((__int64)v139, a4); v57 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onUploadFriendRequestCompleted(a1, v57, v56); break; case 30: v58 = sub_14003BDB0((__int64)v139, a4); v59 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onDeleteFriendRequestCompleted(a1, v59, v58); break; case 31: v60 = sub_14003BDB0((__int64)v139, a4); v61 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onAcceptFriendRequestCompleted(a1, v61, v60); break; case 32: v62 = sub_14003BDB0((__int64)v139, a4); v63 = sub_14003BDB0((__int64)v138, a3); v64 = (_BYTE *)v62; if ( *(_QWORD *)(v62 + 24) > 0xFu ) v64 = *(_BYTE **)v62; Buf2 = 0; v146 = 0; v65 = -1; do ++v65; while ( v64[v65] ); sub_14003A930(&Buf2, v64, v65); cocos2d::CCDictionary::removeObjectForKey(a1[74], &Buf2); if ( *((_QWORD *)&v146 + 1) > 0xFu ) { v66 = (void *)Buf2; if ( (unsigned __int64)(*((_QWORD *)&v146 + 1) + 1LL) >= 0x1000 ) { v66 = *(void **)(Buf2 - 8); if ( (unsigned __int64)(Buf2 - (_QWORD)v66 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v66); } sub_14003A830(v63); goto LABEL_94; case 33: v67 = sub_14003BDB0((__int64)v139, a4); v68 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onRemoveFriendCompleted(a1, v68, v67); break; case 34: v69 = sub_14003BDB0((__int64)v139, a4); v70 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onBlockUserCompleted(a1, v70, v69); break; case 35: v71 = sub_14003BDB0((__int64)v139, a4); v72 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onUnblockUserCompleted(a1, v72, v71); break; case 36: v73 = sub_14003BDB0((__int64)v139, a4); v74 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetUserListCompleted(a1, v74, v73); break; case 37: v77 = sub_14003BDB0((__int64)v139, a4); v78 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetUserMessagesCompleted(a1, v78, v77); break; case 38: v81 = sub_14003BDB0((__int64)v139, a4); v82 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onDownloadUserMessageCompleted(a1, v82, v81); break; case 39: v79 = sub_14003BDB0((__int64)v139, a4); v80 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onDeleteUserMessagesCompleted(a1, v80, v79); break; case 40: v83 = sub_14003BDB0((__int64)v139, a4); v84 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onUploadUserMessageCompleted(a1, v84, v83); break; case 41: v85 = sub_14003BDB0((__int64)v139, a4); v86 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetUsersCompleted(a1, v86, v85); break; case 42: v87 = sub_14003BDB0((__int64)v139, a4); v88 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onBanUserCompleted(a1, v88, v87); break; case 43: v89 = sub_14003BDB0((__int64)v139, a4); v90 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onRequestUserAccessCompleted(a1, v90, v89); break; case 44: v91 = sub_14003BDB0((__int64)v139, a4); v92 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetLevelSaveDataCompleted(a1, v92, v91); break; case 45: v93 = sub_14003BDB0((__int64)v139, a4); v94 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onSuggestLevelStarsCompleted(a1, v94, v93); break; case 46: v95 = sub_14003BDB0((__int64)v139, a4); v96 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetGJRewardsCompleted(a1, v96, v95); break; case 47: v97 = sub_14003BDB0((__int64)v139, a4); v98 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetGJChallengesCompleted(a1, v98, v97); break; case 48: v99 = sub_14003BDB0((__int64)v139, a4); v100 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetGJDailyLevelStateCompleted(a1, v100, v99); break; case 50: v101 = sub_14003BDB0((__int64)v139, a4); v102 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onRateDemonCompleted(a1, v102, v101); break; case 51: v103 = sub_14003BDB0((__int64)v139, a4); v104 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetLevelLeaderboardCompleted(a1, v104, v103); break; case 52: v105 = sub_14003BDB0((__int64)v139, a4); v106 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetGauntletsCompleted(a1, v106, v105); break; case 53: v107 = sub_14003BDB0((__int64)v139, a4); v108 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetTopArtistsCompleted(a1, v108, v107); break; case 60: v109 = sub_14003BDB0((__int64)v139, a4); v110 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetLevelListsCompleted(a1, v110, v109); break; case 61: v111 = sub_14003BDB0((__int64)v139, a4); v112 = (const char *)sub_14003BDB0((__int64)v138, a3); sub_140178320(a1 + 40, v111); v113 = (const char *)v111; if ( *(_QWORD *)(v111 + 24) > 0xFu ) v113 = *(const char **)v111; v114 = atoi(v113); LODWORD(p_Buf2) = v114; v115 = v112; if ( *((_QWORD *)v112 + 3) > 0xFu ) v115 = *(const char **)v112; v117 = atoi(v115); if ( v117 >= 0 ) { LocalLevelList = GameLevelManager::getLocalLevelList(v116, v114); if ( LocalLevelList ) { LocalLevelList->m_listID = v117; LocalLevelList->m_uploaded = 1; } v122 = a1[95]; if ( v122 ) (*(void (__fastcall **)(__int64 *, GJLevelList *))*v122)(v122, LocalLevelList); } else { v118 = a1[95]; if ( v118 ) { v119 = *v118; v120 = GameLevelManager::getLocalLevelList(v116, (int)p_Buf2); (*(void (__fastcall **)(__int64 *, GJLevelList *, _QWORD))(v119 + 8))(a1[95], v120, (unsigned int)v117); } } sub_14003A830((__int64)v112); v18 = v111; goto LABEL_95; case 62: v123 = sub_14003BDB0((__int64)v139, a4); v124 = (const void **)sub_14003BDB0((__int64)v138, a3); sub_140178320(a1 + 40, v123); v125 = (const char *)v123; if ( *(_QWORD *)(v123 + 24) > 0xFu ) v125 = *(const char **)v123; v126 = atoi(v125); Buf2 = 0; *(_QWORD *)&v146 = 2; *((_QWORD *)&v146 + 1) = 15; strcpy((char *)&Buf2, "-1"); v127 = v124; if ( (unsigned __int64)v124[3] > 0xF ) v127 = *v124; v128 = (unsigned __int64)v124[2]; v129 = v128; if ( v128 > 2 ) v129 = 2; if ( !memcmp(v127, &Buf2, v129) && v128 == 2 ) { v131 = a1[99]; if ( v131 ) (*(void (__fastcall **)(__int64 *, _QWORD))(*v131 + 8))(v131, v126); } else { v130 = a1[99]; if ( v130 ) (*(void (__fastcall **)(__int64 *, _QWORD))*v130)(v130, v126); } sub_14003A830((__int64)v124); v18 = v123; goto LABEL_95; case 63: case 66: v62 = sub_14003BDB0((__int64)v139, a4); v136 = sub_14003BDB0((__int64)v138, a3); sub_14003A830(v136); LABEL_94: v18 = v62; LABEL_95: sub_14003A830(v18); break; case 64: v132 = sub_14003BDB0((__int64)v139, a4); v133 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetGJSecretRewardCompleted(a1, v133, v132); break; case 65: v134 = sub_14003BDB0((__int64)v139, a4); v135 = sub_14003BDB0((__int64)v138, a3); GameLevelManager::onGetLevelRateInfoCompleted(a1, v135, v134); break; default: break; } sub_14003A830(a3); sub_14003A830(a4); }
GD Web Decomp Icon

GD Web Decomp

Raw Source