{"type": "func", "start": 6442931616, "end": 6442931924, "name": "cocos2d::CCApplication::getCurrentLanguage", "pseudocode": "// \n// cocos2d::CCApplication::getCurrentLanguage from 0x1800755a0 to 0x1800756d4 (308 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x180106d48\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801be758\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:21:58 +0000\n// \n\n__int64 cocos2d::CCApplication::getCurrentLanguage()\n{\n  unsigned int v0; // ebx\n  __int64 result; // rax\n\n  v0 = 0;\n  switch ( (unsigned __int8)GetUserDefaultLCID() )\n  {\n    case 1u:\n      v0 = 12;\n      goto LABEL_14;\n    case 4u:\n      result = 1;\n      break;\n    case 7u:\n      result = 4;\n      break;\n    case 0xAu:\n      result = 5;\n      break;\n    case 0xCu:\n      result = 2;\n      break;\n    case 0xEu:\n      result = 10;\n      break;\n    case 0x10u:\n      result = 3;\n      break;\n    case 0x11u:\n      result = 9;\n      break;\n    case 0x12u:\n      result = 8;\n      break;\n    case 0x13u:\n      result = 6;\n      break;\n    case 0x16u:\n      result = 11;\n      break;\n    case 0x19u:\n      result = 7;\n      break;\n    default:\nLABEL_14:\n      result = v0;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCApplication::getCurrentLanguage from 0x1800755a0 to 0x1800756d4 (308 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x180106d48\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801be758\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:21:58 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800755a0\nsub     rsp, 20h                                                       ; +0x2, 0x1800755a2\nxor     ebx, ebx                                                       ; +0x6, 0x1800755a6\ncall    cs:GetUserDefaultLCID                                          ; +0x8, 0x1800755a8\nmovzx   ecx, al                                                        ; +0xe, 0x1800755ae\ndec     ecx; switch 25 cases                                           ; +0x11, 0x1800755b1\ncmp     ecx, 18h                                                       ; +0x13, 0x1800755b3\nja      def_1800755D0; jumptable 00000001800755D0 default case, cases 2,3,5,6,8,9,11,13,15,20,21,23,24 ; +0x16, 0x1800755b6\nmovsxd  rax, ecx                                                       ; +0x1c, 0x1800755bc\nlea     rdx, cs:180000000h                                             ; +0x1f, 0x1800755bf\nmov     ecx, ds:(jpt_1800755D0 - 180000000h)[rdx+rax*4]                ; +0x26, 0x1800755c6\nadd     rcx, rdx                                                       ; +0x2d, 0x1800755cd\njmp     rcx; switch jump                                               ; +0x30, 0x1800755d0\nmov     ebx, 1; jumptable 00000001800755D0 case 4                      ; +0x32, 0x1800755d2\nmov     eax, ebx                                                       ; +0x37, 0x1800755d7\nadd     rsp, 20h                                                       ; +0x39, 0x1800755d9\npop     rbx                                                            ; +0x3d, 0x1800755dd\nretn                                                                   ; +0x3e, 0x1800755de\nmov     ebx, 2; jumptable 00000001800755D0 case 12                     ; +0x3f, 0x1800755df\nmov     eax, ebx                                                       ; +0x44, 0x1800755e4\nadd     rsp, 20h                                                       ; +0x46, 0x1800755e6\npop     rbx                                                            ; +0x4a, 0x1800755ea\nretn                                                                   ; +0x4b, 0x1800755eb\nmov     ebx, 3; jumptable 00000001800755D0 case 16                     ; +0x4c, 0x1800755ec\nmov     eax, ebx                                                       ; +0x51, 0x1800755f1\nadd     rsp, 20h                                                       ; +0x53, 0x1800755f3\npop     rbx                                                            ; +0x57, 0x1800755f7\nretn                                                                   ; +0x58, 0x1800755f8\nmov     ebx, 4; jumptable 00000001800755D0 case 7                      ; +0x59, 0x1800755f9\nmov     eax, ebx                                                       ; +0x5e, 0x1800755fe\nadd     rsp, 20h                                                       ; +0x60, 0x180075600\npop     rbx                                                            ; +0x64, 0x180075604\nretn                                                                   ; +0x65, 0x180075605\nmov     ebx, 5; jumptable 00000001800755D0 case 10                     ; +0x66, 0x180075606\nmov     eax, ebx                                                       ; +0x6b, 0x18007560b\nadd     rsp, 20h                                                       ; +0x6d, 0x18007560d\npop     rbx                                                            ; +0x71, 0x180075611\nretn                                                                   ; +0x72, 0x180075612\nmov     ebx, 6; jumptable 00000001800755D0 case 19                     ; +0x73, 0x180075613\nmov     eax, ebx                                                       ; +0x78, 0x180075618\nadd     rsp, 20h                                                       ; +0x7a, 0x18007561a\npop     rbx                                                            ; +0x7e, 0x18007561e\nretn                                                                   ; +0x7f, 0x18007561f\nmov     ebx, 7; jumptable 00000001800755D0 case 25                     ; +0x80, 0x180075620\nmov     eax, ebx                                                       ; +0x85, 0x180075625\nadd     rsp, 20h                                                       ; +0x87, 0x180075627\npop     rbx                                                            ; +0x8b, 0x18007562b\nretn                                                                   ; +0x8c, 0x18007562c\nmov     ebx, 8; jumptable 00000001800755D0 case 18                     ; +0x8d, 0x18007562d\nmov     eax, ebx                                                       ; +0x92, 0x180075632\nadd     rsp, 20h                                                       ; +0x94, 0x180075634\npop     rbx                                                            ; +0x98, 0x180075638\nretn                                                                   ; +0x99, 0x180075639\nmov     ebx, 9; jumptable 00000001800755D0 case 17                     ; +0x9a, 0x18007563a\nmov     eax, ebx                                                       ; +0x9f, 0x18007563f\nadd     rsp, 20h                                                       ; +0xa1, 0x180075641\npop     rbx                                                            ; +0xa5, 0x180075645\nretn                                                                   ; +0xa6, 0x180075646\nmov     ebx, 0Ah; jumptable 00000001800755D0 case 14                   ; +0xa7, 0x180075647\nmov     eax, ebx                                                       ; +0xac, 0x18007564c\nadd     rsp, 20h                                                       ; +0xae, 0x18007564e\npop     rbx                                                            ; +0xb2, 0x180075652\nretn                                                                   ; +0xb3, 0x180075653\nmov     ebx, 0Bh; jumptable 00000001800755D0 case 22                   ; +0xb4, 0x180075654\nmov     eax, ebx                                                       ; +0xb9, 0x180075659\nadd     rsp, 20h                                                       ; +0xbb, 0x18007565b\npop     rbx                                                            ; +0xbf, 0x18007565f\nretn                                                                   ; +0xc0, 0x180075660\nmov     ebx, 0Ch; jumptable 00000001800755D0 case 1                    ; +0xc1, 0x180075661\nmov     eax, ebx; jumptable 00000001800755D0 default case, cases 2,3,5,6,8,9,11,13,15,20,21,23,24 ; +0xc6, 0x180075666\nadd     rsp, 20h                                                       ; +0xc8, 0x180075668\npop     rbx                                                            ; +0xcc, 0x18007566c\nretn                                                                   ; +0xcd, 0x18007566d\nalign 10h                                                              ; +0xce, 0x18007566e\ndd offset loc_180075661 - 180000000h; jump table for switch statement  ; +0xd0, 0x180075670", "xrefs": ["<???> @ 0x180106d48", "<???> @ 0x18014cf68", "<???> @ 0x1801be758"], "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"}