{"type": "func", "start": 6442545328, "end": 6442545464, "name": "localStorageGetItem", "pseudocode": "// \n// localStorageGetItem from 0x1800170b0 to 0x180017138 (136 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004aa04\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nconst char *__fastcall localStorageGetItem(const char *a1)\n{\n  int v2; // edi\n  int v3; // edi\n  int v4; // edi\n  const char *result; // rax\n  const char *v6; // rbx\n\n  v2 = sqlite3_reset(qword_1800486B0);\n  v3 = sqlite3_bind_text(qword_1800486B0, 1, a1) | v2;\n  v4 = sqlite3_step(qword_1800486B0) | v3;\n  result = (const char *)sqlite3_column_text(qword_1800486B0, 0);\n  v6 = result;\n  if ( v4 )\n  {\n    if ( (unsigned int)(v4 - 100) > 1 )\n    {\n      sub_1800171C0(\"Error in localStorage.getItem()\\n\");\n      return v6;\n    }\n  }\n  return result;\n}", "assembly": "; \n; localStorageGetItem from 0x1800170b0 to 0x180017138 (136 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004aa04\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800170b0\npush    rdi                                                            ; +0x5, 0x1800170b5\nsub     rsp, 30h                                                       ; +0x6, 0x1800170b6\nmov     rbx, rcx                                                       ; +0xa, 0x1800170ba\nmov     rcx, cs:qword_1800486B0                                        ; +0xd, 0x1800170bd\ncall    cs:sqlite3_reset                                               ; +0x14, 0x1800170c4\nmov     rcx, cs:qword_1800486B0                                        ; +0x1a, 0x1800170ca\nmov     r9d, 0FFFFFFFFh                                                ; +0x21, 0x1800170d1\nmov     r8, rbx                                                        ; +0x27, 0x1800170d7\nmov     [rsp+38h+var_18], 0FFFFFFFFFFFFFFFFh                           ; +0x2a, 0x1800170da\nmov     edi, eax                                                       ; +0x33, 0x1800170e3\nlea     edx, [r9+2]                                                    ; +0x35, 0x1800170e5\ncall    cs:sqlite3_bind_text                                           ; +0x39, 0x1800170e9\nmov     rcx, cs:qword_1800486B0                                        ; +0x3f, 0x1800170ef\nor      edi, eax                                                       ; +0x46, 0x1800170f6\ncall    cs:sqlite3_step                                                ; +0x48, 0x1800170f8\nmov     rcx, cs:qword_1800486B0                                        ; +0x4e, 0x1800170fe\nxor     edx, edx                                                       ; +0x55, 0x180017105\nor      edi, eax                                                       ; +0x57, 0x180017107\ncall    cs:sqlite3_column_text                                         ; +0x59, 0x180017109\nmov     rbx, rax                                                       ; +0x5f, 0x18001710f\ntest    edi, edi                                                       ; +0x62, 0x180017112\njz      short loc_18001712D                                            ; +0x64, 0x180017114\nlea     ecx, [rdi-64h]                                                 ; +0x66, 0x180017116\ncmp     ecx, 1                                                         ; +0x69, 0x180017119\njbe     short loc_18001712D                                            ; +0x6c, 0x18001711c\nlea     rcx, aErrorInLocalst_0; \"Error in localStorage.getItem()\\n\"    ; +0x6e, 0x18001711e\ncall    sub_1800171C0                                                  ; +0x75, 0x180017125\nmov     rax, rbx                                                       ; +0x7a, 0x18001712a\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7d, 0x18001712d\nadd     rsp, 30h                                                       ; +0x82, 0x180017132\npop     rdi                                                            ; +0x86, 0x180017136\nretn                                                                   ; +0x87, 0x180017137", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x18004aa04"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}