Function at 0x447c70
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x577f41
mov eax, dword fs:[0]
push eax
sub esp, 0x8e4
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8ec], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, edx
mov dword [eax], ebx
mov eax, dword [esi]
mov dword [ebp - 0x8f0], ecx
cmp eax, ebx
je 0x447cca
mov edx, dword [esi + 0x214]
push eax
call edx
add esp, 4
mov dword [esi], ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.sqlite3s.dll
call edi
mov dword [esi + 0x204], eax
cmp eax, ebx
jne 0x447db4
push 0x206
lea ecx, [ebp - 0x21e]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x220], ax
call fcn.00550f40
push 0x206
lea eax, [ebp - 0x426]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x428], dx
call fcn.00550f40
push 0x1fe
lea eax, [ebp - 0x626]
xor ecx, ecx
xor edx, edx
push ebx
push eax
mov word [ebp - 0x18], cx
mov dword [ebp - 0x16], ebx
mov word [ebp - 0x628], dx
call fcn.00550f40
mov eax, dword [ebp - 0x8ec]
push ebx
push ebx
push ebx
push ebx
push pe_nt_image_headers32
lea ecx, [ebp - 0x628]
push ecx
push 3
lea edx, [ebp - 0x18]
push edx
push eax
call fcn.0054f4dd
add esp, 0x48
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0x5ab228
lea eax, [ebp - 0x428]
push 0x104
push eax
call fcn.0054e50b
push str.sqlite3s.dll
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x220]
push str._s_s
push edx
call fcn.0054e46c
add esp, 0x24
lea eax, [ebp - 0x220]
push eax
call edi
mov dword [esi + 0x204], eax
cmp dword [esi + 0x204], ebx
jne 0x447ecb
push 0x206
lea edx, [ebp - 0x82e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x830], cx
call fcn.00550f40
push 0x206
lea ecx, [ebp - 0x426]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x428], ax
call fcn.00550f40
push 0x206
lea eax, [ebp - 0x21e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x220], dx
call fcn.00550f40
add esp, 0x24
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push 0x5b11cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x1fe
lea ecx, [ebp - 0x626]
xor edx, edx
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x18], dx
mov dword [ebp - 0x16], ebx
mov word [ebp - 0x628], ax
call fcn.00550f40
push ebx
push ebx
push ebx
push ebx
push pe_nt_image_headers32
lea edx, [ebp - 0x628]
push edx
push 3
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0054f4dd
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x18]
push eax
push 0x5ab228
lea ecx, [ebp - 0x428]
push 0x104
push ecx
call fcn.0054e50b
add esp, 0x44
push str.sqlite3s.dll
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x830]
push str._s_s
push eax
call fcn.0054e46c
add esp, 0x10
lea ecx, [ebp - 0x830]
push ecx
call edi
mov dword [esi + 0x204], eax
mov eax, dword [esi + 0x204]
cmp eax, ebx
jne 0x447ee7
push str.Sqlite3s.dll_sqlite3s_64.dll
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4481d7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push eax
call edi
mov edx, dword [ebp - 0x8ec]
push edx
lea ecx, [ebp - 0x8e8]
mov dword [esi + 0x208], eax
call fcn.004487a0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x8d4], 0x10
mov eax, dword [ebp - 0x8e8]
jae 0x447f25
lea eax, [ebp - 0x8e8]
push esi
push eax
mov eax, dword [esi + 0x208]
call eax
add esp, 8
cmp eax, ebx
je 0x447f51
cmp dword [ebp - 0x8d4], 0x10
mov dword [esi], ebx
jb 0x4481d7
mov ecx, dword [ebp - 0x8e8]
push ecx
jmp 0x4481cf
lea edx, [ebp - 0x894]
push edx
lea eax, [ebp - 0x830]
push eax
mov eax, dword [ebp - 0x8ec]
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x8c4]
push edx
push eax
call fcn.0054e3ed
lea eax, [ebp - 0x830]
mov edx, eax
mov ecx, esi
add esp, 0x14
sub ecx, edx
lea edx, [ecx + 4]
jmp 0x447f90
movzx ecx, word [eax]
mov word [eax + edx], cx
add eax, 2
cmp cx, bx
jne 0x447f90
mov eax, dword [esi + 0x204]
push str.sqlite3_busy_timeout
push eax
call edi
mov ecx, dword [esi]
push 0xbb8
push ecx
mov dword [esi + 0x20c], eax
call eax
mov eax, dword [ebp - 0x8f0]
add esp, 8
xor edx, edx
mov word [ebp - 0x8cc], dx
mov dword [ebp - 0x8b8], 7
mov dword [ebp - 0x8bc], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x447fe2
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x8f0]
lea ecx, [ebp - 0x8cc]
call fcn.00404800
lea eax, [ebp - 0x8cc]
push eax
lea ecx, [ebp - 0x8b0]
push ecx
mov byte [ebp - 4], 1
call fcn.00447bc0
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x8b8], 8
jb 0x448039
mov edx, dword [ebp - 0x8cc]
push edx
call fcn.0044c90f
add esp, 4
mov ecx, dword [esi + 0x204]
push str.sqlite3_key
xor eax, eax
push ecx
mov dword [ebp - 0x8b8], 7
mov dword [ebp - 0x8bc], ebx
mov word [ebp - 0x8cc], ax
call edi
cmp dword [ebp - 0x89c], 0x10
mov ecx, dword [ebp - 0x8b0]
mov dword [esi + 0x210], eax
jae 0x44807b
lea ecx, [ebp - 0x8b0]
mov edx, dword [ebp - 0x8a0]
push edx
push ecx
mov ecx, dword [esi]
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x4480e0
mov eax, dword [esi]
cmp eax, ebx
je 0x4480a3
mov edx, dword [esi + 0x214]
push eax
call edx
add esp, 4
mov dword [esi], ebx
mov esi, 0x10
cmp dword [ebp - 0x89c], esi
jb 0x4480bf
mov eax, dword [ebp - 0x8b0]
push eax
call fcn.0044c90f
add esp, 4
cmp dword [ebp - 0x8d4], esi
mov dword [ebp - 0x89c], 0xf
mov dword [ebp - 0x8a0], ebx
mov byte [ebp - 0x8b0], bl
jmp 0x447f3f
mov edx, dword [esi + 0x204]
push str.sqlite3_close
push edx
call edi
mov dword [esi + 0x214], eax
cmp eax, ebx
jne 0x44810a
push ebx
push str.sqlite3_close_is_NULL
push str.sqlite3_close
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi + 0x204]
push str.sqlite3_exec
push eax
call edi
mov ecx, dword [esi + 0x204]
push str.sqlite3_get_table
push ecx
mov dword [esi + 0x218], eax
call edi
mov edx, dword [esi + 0x204]
push str.sqlite3_errmsg
push edx
mov dword [esi + 0x21c], eax
call edi
mov dword [esi + 0x224], eax
mov eax, dword [esi + 0x204]
push str.sqlite3_free_table
push eax
call edi
mov ecx, dword [esi + 0x204]
push str.sqlite3_free
push ecx
mov dword [esi + 0x220], eax
call edi
mov edx, dword [esi + 0x204]
push str.sqlite3_limit
push edx
mov dword [esi + 0x228], eax
call edi
mov ecx, dword [esi]
push 0x1e
push 7
push ecx
mov dword [esi + 0x22c], eax
call eax
mov esi, 0x10
add esp, 0xc
cmp dword [ebp - 0x89c], esi
jb 0x4481aa
mov edx, dword [ebp - 0x8b0]
push edx
call fcn.0044c90f
add esp, 4
mov dword [ebp - 0x89c], 0xf
mov dword [ebp - 0x8a0], ebx
mov byte [ebp - 0x8b0], bl
cmp dword [ebp - 0x8d4], esi
jb 0x4481d7
mov eax, dword [ebp - 0x8e8]
push eax
call fcn.0044c90f
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret 8