{"type": "func", "start": 6442545152, "end": 6442545293, "name": "localStorageGetItem", "pseudocode": "// \n// localStorageGetItem from 0x180017000 to 0x18001708d (141 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c95c\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 12:15:42 +0000\n// \n\nconst char *__fastcall localStorageGetItem(const char *a1)\n{\n  int v2; // edi\n  int v3; // edi\n  const char *result; // rax\n  const char *v5; // rbx\n\n  v2 = sqlite3_reset(qword_18004A658);\n  LODWORD(a1) = v2 | sqlite3_bind_text(qword_18004A658, 1, a1, 0xFFFFFFFFLL, -1);\n  v3 = (unsigned int)a1 | sqlite3_step(qword_18004A658);\n  result = (const char *)sqlite3_column_text(qword_18004A658, 0);\n  v5 = result;\n  if ( v3 )\n  {\n    if ( (unsigned int)(v3 - 100) > 1 )\n    {\n      sub_180017110(\"Error in localStorage.getItem()\\n\");\n      return v5;\n    }\n  }\n  return result;\n}", "assembly": "; \n; localStorageGetItem from 0x180017000 to 0x18001708d (141 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c95c\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 12:15:42 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180017000\npush    rdi                                                            ; +0x5, 0x180017005\nsub     rsp, 30h                                                       ; +0x6, 0x180017006\nmov     rbx, rcx                                                       ; +0xa, 0x18001700a\nmov     rcx, cs:qword_18004A658                                        ; +0xd, 0x18001700d\ncall    cs:sqlite3_reset                                               ; +0x14, 0x180017014\nmov     rcx, cs:qword_18004A658                                        ; +0x1a, 0x18001701a\nmov     r9d, 0FFFFFFFFh                                                ; +0x21, 0x180017021\nmov     r8, rbx                                                        ; +0x27, 0x180017027\nmov     [rsp+38h+var_18], 0FFFFFFFFFFFFFFFFh                           ; +0x2a, 0x18001702a\nmov     edx, 1                                                         ; +0x33, 0x180017033\nmov     edi, eax                                                       ; +0x38, 0x180017038\ncall    cs:sqlite3_bind_text                                           ; +0x3a, 0x18001703a\nmov     rcx, cs:qword_18004A658                                        ; +0x40, 0x180017040\nmov     ebx, eax                                                       ; +0x47, 0x180017047\nor      ebx, edi                                                       ; +0x49, 0x180017049\ncall    cs:sqlite3_step                                                ; +0x4b, 0x18001704b\nmov     rcx, cs:qword_18004A658                                        ; +0x51, 0x180017051\nxor     edx, edx                                                       ; +0x58, 0x180017058\nmov     edi, eax                                                       ; +0x5a, 0x18001705a\nor      edi, ebx                                                       ; +0x5c, 0x18001705c\ncall    cs:sqlite3_column_text                                         ; +0x5e, 0x18001705e\nmov     rbx, rax                                                       ; +0x64, 0x180017064\ntest    edi, edi                                                       ; +0x67, 0x180017067\njz      short loc_180017082                                            ; +0x69, 0x180017069\nlea     ecx, [rdi-64h]                                                 ; +0x6b, 0x18001706b\ncmp     ecx, 1                                                         ; +0x6e, 0x18001706e\njbe     short loc_180017082                                            ; +0x71, 0x180017071\nlea     rcx, aErrorInLocalst_0; \"Error in localStorage.getItem()\\n\"    ; +0x73, 0x180017073\ncall    sub_180017110                                                  ; +0x7a, 0x18001707a\nmov     rax, rbx                                                       ; +0x7f, 0x18001707f\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x82, 0x180017082\nadd     rsp, 30h                                                       ; +0x87, 0x180017087\npop     rdi                                                            ; +0x8b, 0x18001708b\nretn                                                                   ; +0x8c, 0x18001708c", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004c95c"], "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"}