//
// sub_10059C470 from 0x10059c470 to 0x10059c50c (156 bytes)
//
// 0 xrefs:
//
// 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 12:32:31 +0000
//
const unsigned __int8 *__fastcall sub_10059C470(char *a1)
{
int v1; // r14d
int v2; // r15d
int v3; // ebx
const unsigned __int8 *result; // rax
const unsigned __int8 *v5; // rbx
if ( !byte_100BE5728 )
sub_1009A7190(a1);
v1 = sqlite3_reset(ppStmt);
v2 = v1 | sqlite3_bind_text(ppStmt, 1, a1, -1, (void (__cdecl *)(void *))0xFFFFFFFFFFFFFFFFLL);
v3 = v2 | sqlite3_step(ppStmt);
result = sqlite3_column_text(ppStmt, 0);
if ( (unsigned int)(v3 - 100) >= 2 )
{
if ( v3 )
{
v5 = result;
puts("Error in localStorage.getItem()");
return v5;
}
}
return result;
}