{"type": "func", "start": 5371336320, "end": 5371336619, "name": "GameManager::generateSecretNumber", "pseudocode": "// \n// GameManager::generateSecretNumber from 0x140281680 to 0x1402817ab (299 bytes)\n// \n// 2 xrefs:\n// > SecretLayer2::onSubmit @ 0x14057c459\n// > <???> @ 0x14091d078\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:29:00 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 GameManager::generateSecretNumber()\n{\n  int v0; // edi\n  int i; // ebx\n  float v2; // xmm0_4\n  float v3; // xmm6_4\n  __int64 v4; // rbx\n  float v5; // xmm0_4\n  __int64 result; // rax\n  void *v7; // [rsp+80h] [rbp+8h]\n\n  v0 = 0;\n  for ( i = 0; i < 7; ++i )\n  {\n    v2 = (float)rand();\n    v3 = roundf((float)((float)(v2 / 32767.0) * 8.0) + 1.0);\n    v0 += (int)(float)(v3 * powf(10.0, (float)i));\n  }\n  v4 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v7 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v4 = qword_14090BFD0;\n  }\n  v5 = (float)((float)rand() / 32767.0) * 1000.0;\n  *(_DWORD *)(v4 + 940) = (int)v5;\n  result = (unsigned int)(v0 + (int)v5);\n  *(_DWORD *)(v4 + 936) = result;\n  return result;\n}", "assembly": "; \n; GameManager::generateSecretNumber from 0x140281680 to 0x1402817ab (299 bytes)\n; \n; 2 xrefs:\n; > SecretLayer2::onSubmit @ 0x14057c459\n; > <???> @ 0x14091d078\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:29:00 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x140281680\nmov     [rax+10h], rbx                                                 ; +0x3, 0x140281683\nmov     [rax+8], rcx                                                   ; +0x7, 0x140281687\npush    rdi                                                            ; +0xb, 0x14028168b\nsub     rsp, 70h                                                       ; +0xc, 0x14028168c\nmovaps  xmmword ptr [rax-18h], xmm6                                    ; +0x10, 0x140281690\nmovaps  xmmword ptr [rax-28h], xmm7                                    ; +0x14, 0x140281694\nmovaps  xmmword ptr [rax-38h], xmm8                                    ; +0x18, 0x140281698\nmovaps  xmmword ptr [rax-48h], xmm9                                    ; +0x1d, 0x14028169d\nmovaps  xmmword ptr [rax-58h], xmm10                                   ; +0x22, 0x1402816a2\nxor     edi, edi                                                       ; +0x27, 0x1402816a7\nmov     ebx, edi                                                       ; +0x29, 0x1402816a9\nmovss   xmm7, cs:dword_140835BDC                                       ; +0x2b, 0x1402816ab\nmovss   xmm8, cs:dword_1408354D4                                       ; +0x33, 0x1402816b3\nmovss   xmm9, cs:flt_140835080                                         ; +0x3c, 0x1402816bc\nmovss   xmm10, cs:flt_1408354EC                                        ; +0x45, 0x1402816c5\nxchg    ax, ax                                                         ; +0x4e, 0x1402816ce\ncall    cs:rand                                                        ; +0x50, 0x1402816d0\nmovd    xmm0, eax                                                      ; +0x56, 0x1402816d6\ncvtdq2ps xmm0, xmm0                                                    ; +0x5a, 0x1402816da\ndivss   xmm0, xmm7                                                     ; +0x5d, 0x1402816dd\nmulss   xmm0, xmm8                                                     ; +0x61, 0x1402816e1\naddss   xmm0, xmm9; X                                                  ; +0x66, 0x1402816e6\ncall    cs:__imp_roundf                                                ; +0x6b, 0x1402816eb\nmovaps  xmm6, xmm0                                                     ; +0x71, 0x1402816f1\nmovd    xmm1, ebx                                                      ; +0x74, 0x1402816f4\ncvtdq2ps xmm1, xmm1; Y                                                 ; +0x78, 0x1402816f8\nmovaps  xmm0, xmm10; X                                                 ; +0x7b, 0x1402816fb\ncall    powf                                                           ; +0x7f, 0x1402816ff\nmulss   xmm6, xmm0                                                     ; +0x84, 0x140281704\ncvttss2si eax, xmm6                                                    ; +0x88, 0x140281708\nadd     edi, eax                                                       ; +0x8c, 0x14028170c\ninc     ebx                                                            ; +0x8e, 0x14028170e\ncmp     ebx, 7                                                         ; +0x90, 0x140281710\njl      short loc_1402816D0                                            ; +0x93, 0x140281713\nmov     rbx, cs:qword_14090BFD0                                        ; +0x95, 0x140281715\ntest    rbx, rbx                                                       ; +0x9c, 0x14028171c\njnz     short loc_140281756                                            ; +0x9f, 0x14028171f\nmov     ecx, 6E8h; Size                                                ; +0xa1, 0x140281721\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa6, 0x140281726\nmov     [rsp+78h+arg_0], rax                                           ; +0xab, 0x14028172b\nmov     rcx, rax                                                       ; +0xb3, 0x140281733\ncall    GameManager__GameManager                                       ; +0xb6, 0x140281736\nnop                                                                    ; +0xbb, 0x14028173b\nmov     cs:qword_14090BFD0, rax                                        ; +0xbc, 0x14028173c\nmov     rcx, [rax]                                                     ; +0xc3, 0x140281743\nmov     rdx, [rcx+48h]                                                 ; +0xc6, 0x140281746\nmov     rcx, rax                                                       ; +0xca, 0x14028174a\ncall    rdx                                                            ; +0xcd, 0x14028174d\nmov     rbx, cs:qword_14090BFD0                                        ; +0xcf, 0x14028174f\ncall    cs:rand                                                        ; +0xd6, 0x140281756\nmovd    xmm0, eax                                                      ; +0xdc, 0x14028175c\ncvtdq2ps xmm0, xmm0                                                    ; +0xe0, 0x140281760\ndivss   xmm0, xmm7                                                     ; +0xe3, 0x140281763\nmulss   xmm0, cs:dword_140835AA4                                       ; +0xe7, 0x140281767\ncvttss2si eax, xmm0                                                    ; +0xef, 0x14028176f\nmov     [rbx+3ACh], eax                                                ; +0xf3, 0x140281773\nadd     eax, edi                                                       ; +0xf9, 0x140281779\nmov     [rbx+3A8h], eax                                                ; +0xfb, 0x14028177b\nmov     rbx, [rsp+78h+arg_8]                                           ; +0x101, 0x140281781\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0x109, 0x140281789\nmovaps  xmm7, [rsp+78h+var_28]                                         ; +0x10e, 0x14028178e\nmovaps  xmm8, [rsp+78h+var_38]                                         ; +0x113, 0x140281793\nmovaps  xmm9, [rsp+78h+var_48]                                         ; +0x119, 0x140281799\nmovaps  xmm10, [rsp+78h+var_58]                                        ; +0x11f, 0x14028179f\nadd     rsp, 70h                                                       ; +0x125, 0x1402817a5\npop     rdi                                                            ; +0x129, 0x1402817a9\nretn                                                                   ; +0x12a, 0x1402817aa", "xrefs": ["SecretLayer2::onSubmit @ 0x14057c459", "<???> @ 0x14091d078"], "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"}