//
// IDNameInput::onBrowser from 0x1403c8af0 to 0x1403c8dc8 (728 bytes)
//
// 2 xrefs:
// > IDNameInput::initCore @ 0x1403c8329
// > ??> @ 0x1409243b0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:31:31 +0000
//
// Hidden C++ exception states: #wind=2
void __fastcall IDNameInput::onBrowser(__int64 a1)
{
__int64 v2; // rax
int v3; // ebp
_BYTE *v4; // rax
size_t v5; // r8
__int64 v6; // rcx
char **v7; // rax
char v8; // dl
const char *v9; // rcx
__int64 v10; // rcx
__int64 v11; // rbx
int v12; // edi
_QWORD *v13; // rsi
__int64 (__fastcall *v14)(__int64); // rdx
char *v15; // rcx
char *String[2]; // [rsp+38h] [rbp-40h] BYREF
unsigned __int64 v17; // [rsp+48h] [rbp-30h]
unsigned __int64 v18; // [rsp+50h] [rbp-28h]
v2 = *(_QWORD *)(a1 + 384);
if ( v2 && *(_DWORD *)(a1 + 376) )
{
v3 = 0;
v4 = (_BYTE *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(v2 + 592) + 600LL) + 8LL))(*(_QWORD *)(v2 + 592) + 600LL);
*(_OWORD *)String = 0;
v17 = 0;
v18 = 0;
v5 = -1;
do
++v5;
while ( v4[v5] );
sub_14003D230(String, v4, v5);
if ( v17 )
{
v6 = 0;
while ( 1 )
{
v7 = String;
if ( v18 > 0xF )
v7 = (char **)String[0];
v8 = *((_BYTE *)v7 + v6);
if ( (v6 || v8 != 45) && (unsigned __int8)(v8 - 48) > 9u )
break;
if ( ++v6 >= v17 )
{
v9 = (const char *)String;
if ( v18 > 0xF )
v9 = String[0];
v3 = atoi(v9);
break;
}
}
}
v10 = *(_QWORD *)(a1 + 440);
if ( v10 )
{
*(_QWORD *)(a1 + 440) = 0;
(**(void (__fastcall ***)(__int64))(v10 + 336))(v10 + 336);
}
v11 = a1 + 328;
v12 = *(_DWORD *)(a1 + 376);
v13 = operator new(0x310u);
FLAlertLayer::FLAlertLayer((__int64)v13);
*v13 = &IDNameBrowserPopup::`vftable';
v13[40] = &IDNameBrowserPopup::`vftable';
v13[41] = &IDNameBrowserPopup::`vftable';
v13[42] = &IDNameBrowserPopup::`vftable';
v13[43] = &IDNameBrowserPopup::`vftable';
v13[44] = &IDNameBrowserPopup::`vftable';
v13[51] = &IDNameBrowserPopup::`vftable';
v13[54] = &IDNameBrowserPopup::`vftable';
v13[68] = &IDNameBrowserPopup::`vftable';
v13[83] = &IDNameBrowserPopup::`vftable';
v13[84] = 0;
v13[85] = 0;
v13[86] = 0;
v13[87] = 0;
v13[88] = 0;
v13[89] = 0;
v13[90] = 0;
v13[91] = 0;
*((_DWORD *)v13 + 184) = 0;
v13[93] = 0;
*((_DWORD *)v13 + 188) = -1;
v13[95] = 0;
v13[96] = 0;
v13[97] = 0;
if ( IDNameBrowserPopup::init((__int64)v13, v3, v12, v11) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v13);
if ( v13 )
{
v14 = *(__int64 (__fastcall **)(__int64))(*v13 + 1064LL);
if ( v14 == IDNameBrowserPopup::show )
IDNameBrowserPopup::show((__int64)v13);
else
v14((__int64)v13);
}
}
else
{
(*(void (__fastcall **)(_QWORD *, __int64))(*v13 + 8LL))(v13, 1);
}
if ( v18 > 0xF )
{
v15 = String[0];
if ( v18 + 1 >= 0x1000 )
{
v15 = *((char **)String[0] - 1);
if ( (unsigned __int64)(String[0] - v15 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v15);
}
}
}