{"type": "func", "start": 6442921520, "end": 6442921828, "name": "cocos2d::CCApplication::getCurrentLanguage", "pseudocode": "// \n// cocos2d::CCApplication::getCurrentLanguage from 0x180072e30 to 0x180072f64 (308 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1801006d8\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b43e0\n// > <???> @ 0x1801b43ec\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__int64 __fastcall cocos2d::CCApplication::getCurrentLanguage(cocos2d::CCApplication *this)\n{\n  unsigned int v1; // ebx\n  __int64 result; // rax\n\n  v1 = 0;\n  switch ( (unsigned __int8)GetUserDefaultLCID() )\n  {\n    case 1u:\n      v1 = 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 = v1;\n      break;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCApplication::getCurrentLanguage from 0x180072e30 to 0x180072f64 (308 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1801006d8\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b43e0\n; > <???> @ 0x1801b43ec\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    rbx                                                            ; +0x0, 0x180072e30\nsub     rsp, 20h                                                       ; +0x2, 0x180072e32\nxor     ebx, ebx                                                       ; +0x6, 0x180072e36\ncall    cs:GetUserDefaultLCID                                          ; +0x8, 0x180072e38\nmovzx   ecx, al                                                        ; +0xe, 0x180072e3e\ndec     ecx; switch 25 cases                                           ; +0x11, 0x180072e41\ncmp     ecx, 18h                                                       ; +0x13, 0x180072e43\nja      def_180072E60; jumptable 0000000180072E60 default case, cases 2,3,5,6,8,9,11,13,15,20,21,23,24 ; +0x16, 0x180072e46\nmovsxd  rax, ecx                                                       ; +0x1c, 0x180072e4c\nlea     rdx, cs:180000000h                                             ; +0x1f, 0x180072e4f\nmov     ecx, ds:(jpt_180072E60 - 180000000h)[rdx+rax*4]                ; +0x26, 0x180072e56\nadd     rcx, rdx                                                       ; +0x2d, 0x180072e5d\njmp     rcx; switch jump                                               ; +0x30, 0x180072e60\nmov     ebx, 1; jumptable 0000000180072E60 case 4                      ; +0x32, 0x180072e62\nmov     eax, ebx                                                       ; +0x37, 0x180072e67\nadd     rsp, 20h                                                       ; +0x39, 0x180072e69\npop     rbx                                                            ; +0x3d, 0x180072e6d\nretn                                                                   ; +0x3e, 0x180072e6e\nmov     ebx, 2; jumptable 0000000180072E60 case 12                     ; +0x3f, 0x180072e6f\nmov     eax, ebx                                                       ; +0x44, 0x180072e74\nadd     rsp, 20h                                                       ; +0x46, 0x180072e76\npop     rbx                                                            ; +0x4a, 0x180072e7a\nretn                                                                   ; +0x4b, 0x180072e7b\nmov     ebx, 3; jumptable 0000000180072E60 case 16                     ; +0x4c, 0x180072e7c\nmov     eax, ebx                                                       ; +0x51, 0x180072e81\nadd     rsp, 20h                                                       ; +0x53, 0x180072e83\npop     rbx                                                            ; +0x57, 0x180072e87\nretn                                                                   ; +0x58, 0x180072e88\nmov     ebx, 4; jumptable 0000000180072E60 case 7                      ; +0x59, 0x180072e89\nmov     eax, ebx                                                       ; +0x5e, 0x180072e8e\nadd     rsp, 20h                                                       ; +0x60, 0x180072e90\npop     rbx                                                            ; +0x64, 0x180072e94\nretn                                                                   ; +0x65, 0x180072e95\nmov     ebx, 5; jumptable 0000000180072E60 case 10                     ; +0x66, 0x180072e96\nmov     eax, ebx                                                       ; +0x6b, 0x180072e9b\nadd     rsp, 20h                                                       ; +0x6d, 0x180072e9d\npop     rbx                                                            ; +0x71, 0x180072ea1\nretn                                                                   ; +0x72, 0x180072ea2\nmov     ebx, 6; jumptable 0000000180072E60 case 19                     ; +0x73, 0x180072ea3\nmov     eax, ebx                                                       ; +0x78, 0x180072ea8\nadd     rsp, 20h                                                       ; +0x7a, 0x180072eaa\npop     rbx                                                            ; +0x7e, 0x180072eae\nretn                                                                   ; +0x7f, 0x180072eaf\nmov     ebx, 7; jumptable 0000000180072E60 case 25                     ; +0x80, 0x180072eb0\nmov     eax, ebx                                                       ; +0x85, 0x180072eb5\nadd     rsp, 20h                                                       ; +0x87, 0x180072eb7\npop     rbx                                                            ; +0x8b, 0x180072ebb\nretn                                                                   ; +0x8c, 0x180072ebc\nmov     ebx, 8; jumptable 0000000180072E60 case 18                     ; +0x8d, 0x180072ebd\nmov     eax, ebx                                                       ; +0x92, 0x180072ec2\nadd     rsp, 20h                                                       ; +0x94, 0x180072ec4\npop     rbx                                                            ; +0x98, 0x180072ec8\nretn                                                                   ; +0x99, 0x180072ec9\nmov     ebx, 9; jumptable 0000000180072E60 case 17                     ; +0x9a, 0x180072eca\nmov     eax, ebx                                                       ; +0x9f, 0x180072ecf\nadd     rsp, 20h                                                       ; +0xa1, 0x180072ed1\npop     rbx                                                            ; +0xa5, 0x180072ed5\nretn                                                                   ; +0xa6, 0x180072ed6\nmov     ebx, 0Ah; jumptable 0000000180072E60 case 14                   ; +0xa7, 0x180072ed7\nmov     eax, ebx                                                       ; +0xac, 0x180072edc\nadd     rsp, 20h                                                       ; +0xae, 0x180072ede\npop     rbx                                                            ; +0xb2, 0x180072ee2\nretn                                                                   ; +0xb3, 0x180072ee3\nmov     ebx, 0Bh; jumptable 0000000180072E60 case 22                   ; +0xb4, 0x180072ee4\nmov     eax, ebx                                                       ; +0xb9, 0x180072ee9\nadd     rsp, 20h                                                       ; +0xbb, 0x180072eeb\npop     rbx                                                            ; +0xbf, 0x180072eef\nretn                                                                   ; +0xc0, 0x180072ef0\nmov     ebx, 0Ch; jumptable 0000000180072E60 case 1                    ; +0xc1, 0x180072ef1\nmov     eax, ebx; jumptable 0000000180072E60 default case, cases 2,3,5,6,8,9,11,13,15,20,21,23,24 ; +0xc6, 0x180072ef6\nadd     rsp, 20h                                                       ; +0xc8, 0x180072ef8\npop     rbx                                                            ; +0xcc, 0x180072efc\nretn                                                                   ; +0xcd, 0x180072efd\nalign 20h                                                              ; +0xce, 0x180072efe\ndd offset loc_180072EF1 - 180000000h; jump table for switch statement  ; +0xd0, 0x180072f00", "xrefs": ["<???> @ 0x1801006d8", "<???> @ 0x1801438a8", "<???> @ 0x1801b43e0", "<???> @ 0x1801b43ec"], "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"}