{"type": "func", "start": 5372656160, "end": 5372656442, "name": "IDNameBrowserPopup::getFormID", "pseudocode": "// \n// IDNameBrowserPopup::getFormID from 0x1403c3a20 to 0x1403c3b3a (282 bytes)\n// \n// 6 xrefs:\n// > IDNameBrowserPopup::updateConflictLabel @ 0x1403c3c97\n// > IDNameBrowserPopup::onFormArrowLeft @ 0x1403c3f29\n// > IDNameBrowserPopup::onFormArrowRight @ 0x1403c3f59\n// > IDNameBrowserPopup::onFormArrowRight @ 0x1403c3f6c\n// > IDNameBrowserPopup::onFormAdd @ 0x1403c4914\n// > <???> @ 0x140924104\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:31:29 +0000\n// \n\n__int64 __fastcall IDNameBrowserPopup::getFormID(__int64 a1)\n{\n  __int64 result; // rax\n  _BYTE *v2; // rax\n  size_t v3; // r8\n  int v4; // ebx\n  const char *v5; // rcx\n  char *v6; // rcx\n  char *String[2]; // [rsp+38h] [rbp-30h] BYREF\n  __int64 v8; // [rsp+48h] [rbp-20h]\n  unsigned __int64 v9; // [rsp+50h] [rbp-18h]\n\n  result = *(_QWORD *)(a1 + 712);\n  if ( result )\n  {\n    v2 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(result + 592) + 600LL) + 8LL))(*(_QWORD *)(result + 592) + 600LL);\n    v8 = 0;\n    *(_OWORD *)String = 0;\n    v9 = 0;\n    v3 = -1;\n    do\n      ++v3;\n    while ( v2[v3] );\n    sub_14003D230(String, v2, v3);\n    if ( v8 )\n    {\n      v5 = (const char *)String;\n      if ( v9 > 0xF )\n        v5 = String[0];\n      v4 = atoi(v5);\n      if ( v4 < 0 )\n        v4 = 0;\n      if ( v4 > 9999 )\n        v4 = 9999;\n    }\n    else\n    {\n      v4 = 0;\n    }\n    if ( v9 > 0xF )\n    {\n      v6 = String[0];\n      if ( v9 + 1 >= 0x1000 )\n      {\n        v6 = *((char **)String[0] - 1);\n        if ( (unsigned __int64)(String[0] - v6 - 8) > 0x1F )\n          invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      }\n      j_j_free(v6);\n    }\n    return (unsigned int)v4;\n  }\n  return result;\n}", "assembly": "; \n; IDNameBrowserPopup::getFormID from 0x1403c3a20 to 0x1403c3b3a (282 bytes)\n; \n; 6 xrefs:\n; > IDNameBrowserPopup::updateConflictLabel @ 0x1403c3c97\n; > IDNameBrowserPopup::onFormArrowLeft @ 0x1403c3f29\n; > IDNameBrowserPopup::onFormArrowRight @ 0x1403c3f59\n; > IDNameBrowserPopup::onFormArrowRight @ 0x1403c3f6c\n; > IDNameBrowserPopup::onFormAdd @ 0x1403c4914\n; > <???> @ 0x140924104\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:31:29 +0000\n; \npush    rdi                                                            ; +0x0, 0x1403c3a20\nsub     rsp, 60h                                                       ; +0x2, 0x1403c3a22\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1403c3a26\nxor     rax, rsp                                                       ; +0xd, 0x1403c3a2d\nmov     [rsp+68h+var_10], rax                                          ; +0x10, 0x1403c3a30\nmov     rax, [rcx+2C8h]                                                ; +0x15, 0x1403c3a35\nxor     edi, edi                                                       ; +0x1c, 0x1403c3a3c\ntest    rax, rax                                                       ; +0x1e, 0x1403c3a3e\njnz     short loc_1403C3A56                                            ; +0x21, 0x1403c3a41\nmov     rcx, [rsp+68h+var_10]                                          ; +0x23, 0x1403c3a43\nxor     rcx, rsp; StackCookie                                          ; +0x28, 0x1403c3a48\ncall    __security_check_cookie                                        ; +0x2b, 0x1403c3a4b\nadd     rsp, 60h                                                       ; +0x30, 0x1403c3a50\npop     rdi                                                            ; +0x34, 0x1403c3a54\nretn                                                                   ; +0x35, 0x1403c3a55\nmov     rcx, [rax+250h]                                                ; +0x36, 0x1403c3a56\nadd     rcx, 258h                                                      ; +0x3d, 0x1403c3a5d\nmov     rax, [rcx]                                                     ; +0x44, 0x1403c3a64\ncall    qword ptr [rax+8]                                              ; +0x47, 0x1403c3a67\nxorps   xmm0, xmm0                                                     ; +0x4a, 0x1403c3a6a\nmov     [rsp+68h+var_20], rdi                                          ; +0x4d, 0x1403c3a6d\nmovups  xmmword ptr [rsp+68h+String], xmm0                             ; +0x52, 0x1403c3a72\nmov     [rsp+68h+var_18], rdi                                          ; +0x57, 0x1403c3a77\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x5c, 0x1403c3a7c\ninc     r8                                                             ; +0x63, 0x1403c3a83\ncmp     [rax+r8], dil                                                  ; +0x66, 0x1403c3a86\njnz     short loc_1403C3A83                                            ; +0x6a, 0x1403c3a8a\nmov     rdx, rax                                                       ; +0x6c, 0x1403c3a8c\nmov     [rsp+68h+arg_8], rbx                                           ; +0x6f, 0x1403c3a8f\nlea     rcx, [rsp+68h+String]                                          ; +0x74, 0x1403c3a94\ncall    sub_14003D230                                                  ; +0x79, 0x1403c3a99\ncmp     [rsp+68h+var_20], rdi                                          ; +0x7e, 0x1403c3a9e\njnz     short loc_1403C3AA9                                            ; +0x83, 0x1403c3aa3\nmov     ebx, edi                                                       ; +0x85, 0x1403c3aa5\njmp     short loc_1403C3AD1                                            ; +0x87, 0x1403c3aa7\ncmp     [rsp+68h+var_18], 0Fh                                          ; +0x89, 0x1403c3aa9\nlea     rcx, [rsp+68h+String]                                          ; +0x8f, 0x1403c3aaf\ncmova   rcx, [rsp+68h+String]; String                                  ; +0x94, 0x1403c3ab4\ncall    cs:atoi                                                        ; +0x9a, 0x1403c3aba\ntest    eax, eax                                                       ; +0xa0, 0x1403c3ac0\nmov     ebx, eax                                                       ; +0xa2, 0x1403c3ac2\nmov     eax, 270Fh                                                     ; +0xa4, 0x1403c3ac4\ncmovs   ebx, edi                                                       ; +0xa9, 0x1403c3ac9\ncmp     ebx, eax                                                       ; +0xac, 0x1403c3acc\ncmovg   ebx, eax                                                       ; +0xae, 0x1403c3ace\nmov     rdx, [rsp+68h+var_18]                                          ; +0xb1, 0x1403c3ad1\ncmp     rdx, 0Fh                                                       ; +0xb6, 0x1403c3ad6\njbe     short loc_1403C3B20                                            ; +0xba, 0x1403c3ada\nmov     rcx, [rsp+68h+String]; Block                                   ; +0xbc, 0x1403c3adc\ninc     rdx                                                            ; +0xc1, 0x1403c3ae1\nmov     rax, rcx                                                       ; +0xc4, 0x1403c3ae4\ncmp     rdx, 1000h                                                     ; +0xc7, 0x1403c3ae7\njb      short loc_1403C3B1B                                            ; +0xce, 0x1403c3aee\nmov     rcx, [rcx-8]                                                   ; +0xd0, 0x1403c3af0\nadd     rdx, 27h ; '''                                                 ; +0xd4, 0x1403c3af4\nsub     rax, rcx                                                       ; +0xd8, 0x1403c3af8\nsub     rax, 8                                                         ; +0xdb, 0x1403c3afb\ncmp     rax, 1Fh                                                       ; +0xdf, 0x1403c3aff\njbe     short loc_1403C3B1B                                            ; +0xe3, 0x1403c3b03\nxor     r9d, r9d; LineNo                                               ; +0xe5, 0x1403c3b05\nmov     [rsp+68h+Reserved], rdi; Reserved                              ; +0xe8, 0x1403c3b08\nxor     r8d, r8d; FileName                                             ; +0xed, 0x1403c3b0d\nxor     edx, edx; FunctionName                                         ; +0xf0, 0x1403c3b10\nxor     ecx, ecx; Expression                                           ; +0xf2, 0x1403c3b12\ncall    cs:_invoke_watson                                              ; +0xf4, 0x1403c3b14\ndb 0CCh                                                                ; +0xfa, 0x1403c3b1a\ncall    j_j_free                                                       ; +0xfb, 0x1403c3b1b\nmov     eax, ebx                                                       ; +0x100, 0x1403c3b20\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x102, 0x1403c3b22\nmov     rcx, [rsp+68h+var_10]                                          ; +0x107, 0x1403c3b27\nxor     rcx, rsp; StackCookie                                          ; +0x10c, 0x1403c3b2c\ncall    __security_check_cookie                                        ; +0x10f, 0x1403c3b2f\nadd     rsp, 60h                                                       ; +0x114, 0x1403c3b34\npop     rdi                                                            ; +0x118, 0x1403c3b38\nretn                                                                   ; +0x119, 0x1403c3b39", "xrefs": ["IDNameBrowserPopup::updateConflictLabel @ 0x1403c3c97", "IDNameBrowserPopup::onFormArrowLeft @ 0x1403c3f29", "IDNameBrowserPopup::onFormArrowRight @ 0x1403c3f59", "IDNameBrowserPopup::onFormArrowRight @ 0x1403c3f6c", "IDNameBrowserPopup::onFormAdd @ 0x1403c4914", "<???> @ 0x140924104"], "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"}