Function at 0x405cd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5241d1
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x571134]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
call fcn.0040ad10
mov ecx, esi
call fcn.004058b0
test al, al
jne 0x405d7d
push esi
lea ecx, [ebp - 0x2c]
call fcn.00408520
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040af70
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4061c2
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4061b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406213
jmp 0x4061b8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405d87
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x406173
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea ecx, [ebp - 0x2c]
call fcn.00408520
lea edx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040b470
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x405e03
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405df9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406218
push edx
push ecx
call fcn.004fb2db
add esp, 8
push esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 4
call fcn.00408520
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.00405be0
cmp dword [eax + 0x14], 0x10
jb 0x405e2e
mov eax, dword [eax]
push 0
push 1
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.00451910
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x58], edi
cmp edx, 0x10
jb 0x405e78
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405e6e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40621d
push edx
push ecx
call fcn.004fb2db
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 8
jb 0x405ec8
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405ebe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40621d
push edx
push ecx
call fcn.004fb2db
add esp, 8
test edi, edi
jne 0x406222
xorps xmm0, xmm0
mov dword [ebp - 0x34], edi
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x48]
cmp ecx, eax
je 0x405f14
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
sub edi, eax
je 0x405f00
push edi
call fcn.004117d0
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
push edi
push eax
push esi
call fcn.004fd090
lea eax, [edi + esi]
add esp, 0xc
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], 0
push 7
xor eax, eax
mov dword [ebp - 0x1c], 0
push str.Cookies
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 9
call fcn.004090d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xb
call fcn.00405a30
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x405f8c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406289
push edx
push ecx
call fcn.004fb2db
add esp, 8
mov eax, dword [ebp + 8]
mov esi, dword [eax]
mov edi, dword [eax + 4]
cmp esi, edi
je 0x40602d
push 0xd8
push str.SELECT_host_key__name__MAX_expires_utc__AS_expires_utc__CAST_encrypted_value_AS_BLOB___length_encrypted_value___is_httponly_FROM_cookies_WHERE_host_key_LIKE__AND_is_secure1_AND_samesite0_GROUP_BY_host_key__name
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.0040b760
add esp, 8
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push ecx
cmovae eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
push ecx
push 0x406370
push eax
push dword [ebp - 0x4c]
mov dword [ebp - 0x48], 0
call fcn.0044e850
add esp, 0x14
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x40628e
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x406025
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40601b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062d4
push edx
push ecx
call fcn.004fb2db
add esp, 8
add esi, 0x18
jmp 0x405f94
push dword [ebp - 0x4c]
call fcn.0044e4b0
mov ecx, dword [ebp - 0x34]
mov eax, 0x51eb851f
sub ecx, dword [ebp - 0x38]
add esp, 4
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], eax
call fcn.0040b820
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
cmp edi, eax
je 0x40612b
mov ecx, eax
mov eax, 0x51eb851f
sub ecx, edi
imul ecx
sar edx, 5
mov esi, edx
shr esi, 0x1f
add esi, edx
push esi
call fcn.00409610
mov ecx, dword [ebp - 0x54]
mov edx, eax
imul eax, esi, 0x64
mov dword [ebp - 0x48], ecx
mov dword [ecx], edx
mov dword [ecx + 4], edx
add eax, edx
mov dword [ecx + 8], eax
mov esi, dword [ecx]
xorps xmm0, xmm0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0xf
cmp edi, dword [ebp - 0x50]
je 0x406125
push edi
mov ecx, esi
mov dword [ebp - 0x58], esi
call fcn.00408520
lea eax, [edi + 0x18]
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x18]
push eax
call fcn.00408520
lea eax, [edi + 0x30]
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0x30]
push eax
call fcn.00408520
lea eax, [edi + 0x48]
mov byte [ebp - 4], 0x15
lea ecx, [esi + 0x48]
push eax
call fcn.00408520
mov byte [ebp - 4], 0xf
mov al, byte [edi + 0x60]
mov byte [esi + 0x60], al
add esi, 0x64
mov dword [ebp - 0x1c], esi
add edi, 0x64
jmp 0x4060d0
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 4], esi
mov byte [ecx + 0xc], 1
lea ecx, [ebp - 0x38]
call fcn.00408e20
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x40616b
mov edx, dword [ebp - 0x3c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x406161
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062d9
push edx
push ecx
call fcn.004fb2db
add esp, 8
mov eax, dword [ebp - 0x54]
jmp 0x4061f7
push esi
lea ecx, [ebp - 0x74]
call fcn.00408520
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.0040b1f0
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x4061c2
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4061b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406308
push edx
push ecx
call fcn.004fb2db
add esp, 8
mov byte [edi + 0xc], 0
mov eax, edi
jmp 0x4061f7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fb4f7
mov esp, ebp
pop ebp
ret
call fcn.00506c4f
call fcn.00506c4f
call fcn.00506c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
mov ecx, esi
lea eax, [ebp - 0x74]
push eax
call fcn.004050f0
lea edx, [ebp - 0x74]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.00405be0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 7
push ecx
lea ecx, [ebp - 0x58]
mov edx, eax
push ecx
push 0x23
push str.sqlite3_open_v2_Error_:______
lea ecx, [ebp - 0xb8]
call fcn.0040b6f0
add esp, 0x10
push eax
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 8
call fcn.004017e0
push 0x56d5d0
lea eax, [ebp - 0x88]
push eax
call fcn.004fcbaf
call fcn.00506c4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
push 0x1b
push str.sqlite3_exec_Error_____
lea ecx, [ebp - 0xb8]
call fcn.0040b7c0
add esp, 0xc
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xd
call fcn.004017e0
push 0x56d5d0
lea eax, [ebp - 0x94]
push eax
call fcn.004fcbaf
call fcn.00506c4f
call fcn.00506c4f
push dword [ebp - 0x4c]
call fcn.0044e4b0
add esp, 4
lea ecx, [ebp - 0xa0]
push dword [ebp - 0x78]
call fcn.00401590
push 0x56d5f0
lea eax, [ebp - 0xa0]
push eax
call fcn.004fcbaf
call fcn.00506c4f
int3