Function at 0x4141a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x90
mov ebx, ecx
mov esi, 0x502288
cmp edx, 2
mov dword [esp + 0x18], 0xffffffff
jl 0x4141c9
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
pcmpeqd xmm0, xmm0
mov ecx, ebx
xor edx, edx
mov dword [esp + 8], 0
mov dword [esp + 0x80], 0xffffffff
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
call fcn.00405c30
mov eax, dword [ebx]
mov edi, 1
test eax, eax
je 0x4143e3
lea ecx, [esp + 8]
push 0
push ecx
push 0xffffffffffffffff
push str.SELECT_data_FROM_sqlite_dbpage__1__WHERE_pgno1
push eax
call fcn.0042cf00
add esp, 0x14
test eax, eax
je 0x414264
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ecx, ebx
mov ebx, eax
push dword [ecx]
call fcn.0042cf50
add esp, 4
push eax
push str.error:__s_n
push ebx
call fcn.004014c0
add esp, 0xc
jmp 0x4143d7
push 0
push 0xffffffffffffffff
push esi
push 1
push dword [esp + 0x18]
call fcn.00428dc0
add esp, 0x14
push dword [esp + 8]
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x4143be
push 0
push dword [esp + 0xc]
call fcn.00427de0
add esp, 8
cmp eax, 0x65
jl 0x4143be
mov dword [esp + 0x14], esi
push 0
push dword [esp + 0xc]
call fcn.00427d30
add esp, 8
lea ecx, [esp + 0x20]
push 0x64
push eax
push ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
push dword [esp + 8]
call fcn.00425440
add esp, 4
movzx eax, word [esp + 0x30]
mov ecx, 0x10000
shl eax, 0x10
bswap eax
cmp eax, 1
cmovne ecx, eax
push ecx
push str.database_page_size:
push str.__20s__d_n
push dword [ebx + 0x28]
call fcn.004014c0
add esp, 0x10
movzx eax, byte [esp + 0x32]
push eax
push str.write_format:
push str.__20s__d_n
push dword [ebx + 0x28]
call fcn.004014c0
add esp, 0x10
movzx eax, byte [esp + 0x33]
push eax
push str.read_format:
push str.__20s__d_n
push dword [ebx + 0x28]
call fcn.004014c0
add esp, 0x10
movzx eax, byte [esp + 0x34]
push eax
push str.reserved_bytes:
push str.__20s__d_n
push dword [ebx + 0x28]
call fcn.004014c0
add esp, 0x10
mov esi, 0xffffffa0
jmp 0x414379
push str.__utf16be_
push dword [ebx + 0x28]
call fcn.00404690
add esp, 8
push 0x502728
push dword [ebx + 0x28]
call fcn.00404690
add esp, 8
add esi, 8
je 0x4143ed
mov eax, dword [esi + 0x505dd0]
mov edi, dword [esp + eax + 0x20]
bswap edi
push edi
push dword [esi + str.file_change_counter:]
push str.__20s__u
push dword [ebx + 0x28]
call fcn.004014c0
add esp, 0x10
cmp esi, 0xffffffe0
jne 0x414364
cmp edi, 3
je 0x414354
cmp edi, 2
je 0x4143b7
cmp edi, 1
jne 0x414364
push str.__utf8_
jmp 0x414359
push str.__utf16le_
jmp 0x414359
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.unable_to_read_database_header_n
push eax
call fcn.00404690
add esp, 8
push dword [esp + 8]
call fcn.00425440
add esp, 4
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41440f
push 0x50292c
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x41441e
push esi
push str.__w_.sqlite_master
jmp 0x414428
push str.main.sqlite_master
call fcn.0041ef10
add esp, 4
jmp 0x414430
push 0x50483a
push 0x501b14
call fcn.0041ef10
add esp, 8
mov esi, 0xffffffd8
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ebx
jmp 0x414475
push dword [esp + 0x10]
call fcn.00425440
add esp, 4
push ebx
call fcn.0041c220
add esp, 4
push edi
push dword [esi + str.number_of_tables:]
push str.__20s__d_n
mov ebx, dword [esp + 0x28]
push dword [ebx + 0x28]
call fcn.004014c0
add esp, 0x10
add esi, 8
je 0x4144d4
push dword [esp + 0xc]
push dword [esi + 0x505ed4]
call fcn.0041ef10
add esp, 8
mov ecx, ebx
mov ebx, eax
mov dword [esp + 0x10], 0xffffffff
push 0
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push ebx
push dword [ecx]
call fcn.0042cf00
add esp, 0x14
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
je 0x414440
push eax
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x414440
push 0
push dword [esp + 0x14]
call fcn.00428070
add esp, 8
mov edi, eax
jmp 0x414440
push dword [esp + 0xc]
call fcn.0041c220
add esp, 4
lea eax, [esp + 0x18]
push eax
push 0x23
push dword [esp + 0x1c]
push dword [ebx]
call fcn.00433a50
add esp, 0x10
push dword [esp + 0x18]
push 0x5060f1
push str.__20s__u_n
push dword [ebx + 0x28]
call fcn.004014c0
add esp, 0x10
xor edi, edi
jmp 0x4143e3