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

Disassembly:
push ebp
lea ebp, [esp - 0x7ac]
sub esp, 0x82c
mov eax, dword [0x4a4720]
xor eax, ebp
mov dword [ebp + 0x7a8], eax
mov eax, dword [ebp + 0x7b4]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x7b8]
push esi
mov dword [eax], 0
mov eax, dword [ebx]
mov esi, ecx
push edi
mov dword [ebp - 0x80], esi
test eax, eax
je 0x43a14f
mov ecx, dword [ebx + 0x21c]
push eax
call ecx
add esp, 4
mov dword [ebx], 0
push str.sqlite3s.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x20c], eax
test eax, eax
jne 0x43a1d7
xor edx, edx
push 0x206
push edx
lea eax, [ebp + 0x39a]
push eax
mov word [ebp + 0x398], dx
call fcn.00464a00
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp + 0x5a2]
push edx
mov word [ebp + 0x5a0], cx
call fcn.00464a00
add esp, 0x18
lea edi, [ebp + 0x5a0]
call fcn.0043aa20
push str.sqlite3s.dll
mov eax, edi
push eax
lea ecx, [ebp + 0x398]
push str._s_s
push ecx
call fcn.00461fd7
add esp, 0x10
lea edx, [ebp + 0x398]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x20c], eax
cmp dword [ebx + 0x20c], 0
jne 0x43a299
xor eax, eax
push 0x206
push eax
lea ecx, [ebp + 0x192]
push ecx
mov word [ebp + 0x190], ax
call fcn.00464a00
xor edx, edx
push 0x206
push edx
lea eax, [ebp + 0x5a2]
push eax
mov word [ebp + 0x5a0], dx
call fcn.00464a00
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp + 0x39a]
push edx
mov word [ebp + 0x398], cx
call fcn.00464a00
add esp, 0x24
push 0x104
lea eax, [ebp + 0x398]
push eax
push 0x493f74
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edi, [ebp + 0x5a0]
lea esi, [ebp + 0x398]
call fcn.0043aa20
push str.sqlite3s.dll
mov ecx, edi
push ecx
lea edx, [ebp + 0x190]
push str._s_s
push edx
call fcn.00461fd7
add esp, 0x10
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 0x80]
mov dword [ebx + 0x20c], eax
mov eax, dword [ebx + 0x20c]
test eax, eax
jne 0x43a2b5
push str.Sqlite3s.dll_sqlite3s_64.dll
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x43a477
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sqlite3_open
push eax
call edi
lea ecx, [ebp - 0x78]
push ecx
push esi
mov dword [ebx + 0x210], eax
call fcn.0043a8f0
mov eax, dword [ebx + 0x210]
lea edx, [ebp - 0x78]
push ebx
push edx
call eax
add esp, 0x10
test eax, eax
jne 0x43a3be
push esi
mov esi, ebx
call fcn.0043a7c0
mov ecx, dword [ebx + 0x20c]
push str.sqlite3_busy_timeout
push ecx
call edi
mov edx, dword [ebx]
push 0xbb8
push edx
mov dword [ebx + 0x214], eax
call eax
mov eax, dword [ebp - 0x7c]
add esp, 8
test eax, eax
jne 0x43a320
mov dword [ebp - 0x7c], eax
jmp 0x43a368
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x43a363
add eax, eax
mov dword [ebp - 0x80], eax
call fcn.00467510
mov esi, esp
test esi, esi
je 0x43a363
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
push ecx
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x43a365
xor eax, eax
mov dword [ebp - 0x7c], eax
mov edx, dword [ebx + 0x20c]
push str.sqlite3_key
push edx
call edi
mov edx, dword [ebp - 0x7c]
mov esi, eax
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebx + 0x218], esi
mov dword [ebp - 0x7c], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43a390
sub ecx, dword [ebp - 0x7c]
push ecx
mov ecx, dword [ebx]
push edx
push ecx
call esi
add esp, 0xc
test eax, eax
je 0x43a3c9
mov eax, dword [ebx]
test eax, eax
je 0x43a477
mov edx, dword [ebx + 0x21c]
push eax
call edx
add esp, 4
mov dword [ebx], 0
jmp 0x43a477
mov eax, dword [ebx + 0x20c]
push str.sqlite3_close
push eax
call edi
mov dword [ebx + 0x21c], eax
test eax, eax
jne 0x43a3f3
push eax
push str.sqlite3_close_is_NULL
push str.sqlite3_close
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebx + 0x20c]
push str.sqlite3_exec
push ecx
call edi
mov edx, dword [ebx + 0x20c]
push str.sqlite3_get_table
push edx
mov dword [ebx + 0x220], eax
call edi
mov dword [ebx + 0x224], eax
mov eax, dword [ebx + 0x20c]
push str.sqlite3_errmsg
push eax
call edi
mov ecx, dword [ebx + 0x20c]
push str.sqlite3_free_table
push ecx
mov dword [ebx + 0x22c], eax
call edi
mov edx, dword [ebx + 0x20c]
push str.sqlite3_free
push edx
mov dword [ebx + 0x228], eax
call edi
mov dword [ebx + 0x230], eax
mov eax, dword [ebx + 0x20c]
push str.sqlite3_limit
push eax
call edi
mov ecx, dword [ebx]
push 0x1e
push 7
push ecx
mov dword [ebx + 0x234], eax
call eax
add esp, 0xc
xor eax, eax
lea esp, [ebp - 0x88]
pop edi
pop esi
mov ecx, dword [ebp + 0x7a8]
xor ecx, ebp
call fcn.00461706
add ebp, 0x7ac
mov esp, ebp
pop ebp
ret 8