Function at 0x468c30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
add dword [esi + 0x38], 0xffffffff
mov ebx, dword [esi + 8]
mov ecx, dword [esi + 0x38]
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 0x1c]
and al, 0x80
neg al
sbb al, al
and al, 0xfd
add al, 0x1f
cmp byte [ebp + 0x2c], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ecx
mov byte [esp + 0xf], al
jne 0x468ca5
mov edx, dword [ebp + 0x1c]
push edx
push ecx
mov ecx, dword [ebp + 0x14]
movzx edx, al
push ecx
push edx
push ebx
call fcn.0043c3f0
mov ecx, dword [ebx]
add esp, 0x14
cmp byte [ecx + 0x57], 0
jne 0x468ca5
movsx ecx, word [ebp + 0x20]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
lea eax, [eax + edx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], ecx
mov eax, dword [esi]
mov eax, dword [eax + 0x20]
and eax, 0x4000
xor edx, edx
xor ecx, ecx
or eax, edx
je 0x468ce4
cmp byte [edi + 0x2b], dl
jne 0x468ce4
mov eax, dword [edi]
mov ecx, dword [edi + 0x3c]
push eax
add ecx, 0x38
xor eax, eax
call fcn.0041e520
add esp, 4
cmp dword [eax + 8], 0
jne 0x468cdf
cmp dword [edi + 0x30], 0
jne 0x468cdf
xor ecx, ecx
jmp 0x468ce4
mov ecx, 1
test ecx, ecx
jne 0x468cf1
cmp dword [ebp + 0x10], ecx
je 0x468e77
movzx eax, byte [ebp + 0x28]
push eax
push 3
push 0
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
push 0
push esi
mov ebx, edi
call fcn.00487ee0
add esp, 0x14
push esi
mov dword [esp + 0x20], eax
call fcn.0046e640
or dword [esp + 0x20], eax
mov eax, dword [esi + 0x2c]
movsx edx, word [edi + 0x22]
add esp, 4
lea ecx, [eax + 1]
push 0
push ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x1c]
push ecx
lea eax, [edx + eax + 1]
mov edx, dword [esp + 0x20]
push 0x50
push edx
mov dword [esi + 0x2c], eax
call fcn.0043c3f0
xor ebx, ebx
add esp, 0x14
cmp word [edi + 0x22], bx
mov dword [esp + 0x20], ebx
jle 0x468dac
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x468d71
cmp ebx, 0x1f
jg 0x468d9d
mov edx, 1
mov ecx, ebx
shl edx, cl
test eax, edx
je 0x468d9d
mov eax, ebx
call fcn.00461390
mov ecx, dword [esp + 0x10]
movsx eax, ax
lea edx, [eax + ecx + 1]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push edx
push eax
mov eax, ebx
push ecx
mov ebx, edi
call fcn.004568a0
mov ebx, dword [esp + 0x2c]
add esp, 0xc
movsx edx, word [edi + 0x22]
add ebx, 1
cmp ebx, edx
mov dword [esp + 0x20], ebx
jl 0x468d56
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
mov ecx, dword [eax + 0x6c]
mov dword [esp + 0x20], ecx
je 0x468e12
mov edi, edi
cmp byte [ebx + 8], 0x80
jne 0x468e07
cmp byte [ebx + 9], 1
jne 0x468e07
cmp byte [ebx + 0xa], 0
jne 0x468dee
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
push edi
push ebx
push esi
call fcn.00487d30
add esp, 0x18
jmp 0x468e07
cmp dword [esi + 0x78], 0
jne 0x468e07
mov edx, dword [esp + 0x10]
push edx
push ebx
mov eax, edi
call fcn.004873b0
mov esi, dword [ebp + 8]
add esp, 8
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x468dc0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [eax + 0x6c]
jge 0x468e5e
mov edx, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push ecx
movzx ecx, byte [esp + 0x17]
push edx
push ecx
push eax
call fcn.0043c3f0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
add esp, 0x14
cmp byte [edx + 0x57], 0
jne 0x468e57
mov ecx, dword [ecx + 0x68]
movsx edx, word [ebp + 0x20]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], edx
mov dword [ebp + 0x30], 0xffffffff
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push eax
push edi
push esi
call fcn.0046e0e0
mov ebx, dword [esp + 0x2c]
add esp, 0x18
cmp byte [edi + 0x2b], 2
je 0x468f5b
mov ecx, dword [ebp + 0x30]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push ecx
push 0
push edx
push eax
push esi
mov ecx, edi
mov byte [esp + 0x23], 0
call fcn.00469010
mov edx, dword [ebp + 0x14]
add esp, 0x14
xor ecx, ecx
cmp byte [ebp + 0x24], cl
push 0
setne cl
push ecx
push edx
push 0x82
push ebx
call fcn.0043c3f0
add esp, 0x14
cmp byte [esi + 0x12], 0
je 0x468ed6
mov edx, dword [edi]
test edx, edx
je 0x468f00
mov eax, str.sqlite_stat1
call fcn.0041cd90
test eax, eax
jne 0x468f00
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
je 0x468eec
mov eax, edi
mov edx, 0xfffffffb
call fcn.0043cde0
jmp 0x468f00
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x68]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4 - 0x14]
mov byte [eax + 1], 0xfb
mov dword [eax + 0x10], edi
cmp byte [ebp + 0x2c], 0
je 0x468f1a
mov eax, dword [ebx + 0x6c]
test eax, eax
jle 0x468f1a
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov word [eax + edx*4 - 0x12], 4
mov eax, dword [ebp + 0x30]
test eax, eax
jl 0x468f39
cmp eax, dword [ebp + 0x14]
je 0x468f39
push 0
push 0
push eax
push 0x82
push ebx
call fcn.0043c3f0
add esp, 0x14
cmp byte [ebp + 0x2c], 2
mov cl, 2
je 0x468f45
mov cl, byte [esp + 0xf]
mov eax, dword [ebx + 0x6c]
test eax, eax
jle 0x468f5b
movzx cx, cl
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
mov word [eax + edx*4 - 0x12], cx
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
push 0
push 0
push ecx
push 0
mov esi, edi
call fcn.0046ee50
mov ebx, dword [ebp + 0x10]
add esp, 0x10
test ebx, ebx
je 0x468fd4
lea ebx, [ebx]
cmp byte [ebx + 8], 0x80
jne 0x468fcd
cmp byte [ebx + 9], 2
jne 0x468fcd
cmp byte [ebx + 0xa], 0
jne 0x468fb1
mov edx, dword [esp + 0x18]
movzx eax, byte [ebp + 0x28]
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edi
push ebx
push edx
call fcn.00487d30
add esp, 0x18
jmp 0x468fcd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x78], 0
jne 0x468fcd
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
push ecx
push ebx
mov eax, edi
call fcn.004873b0
add esp, 8
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x468f80
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0xc]
mov edx, dword [edi + 0x3c]
add edx, dword [edi + 0x38]
mov eax, dword [esp + 0x18]
not eax
jns 0x468ffa
push eax
push ecx
call fcn.0043ca00
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x40]
mov ecx, dword [ecx + 0x6c]
pop edi
pop esi
mov dword [edx + eax*4], ecx
pop ebx
mov esp, ebp
pop ebp
ret