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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x3c], eax
add eax, 1
mov dword [esp + 0x34], eax
add eax, 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], eax
add eax, 1
mov dword [esp + 0x50], eax
add eax, 1
mov dword [esp + 0xc], eax
add eax, 1
mov dword [esp + 0x54], eax
add eax, 1
push ebx
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x3c], eax
add eax, 1
push esi
mov dword [esp + 0x54], eax
add eax, 1
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi]
mov dword [esp + 0x50], eax
add eax, 1
cmp ecx, eax
mov dword [esp + 0x1c], edx
mov byte [esp + 0xf], 1
mov dword [ebp + 0x18], eax
jle 0x45dbaf
mov eax, ecx
mov esi, dword [edi + 8]
test esi, esi
mov dword [edi + 0x2c], eax
je 0x45dbbf
mov dword [esp + 0x20], esi
jmp 0x45dbdf
cmp dword [edi + 0x78], 0
jne 0x45dbcf
test byte [edx + 0x50], 8
jne 0x45dbcf
mov byte [edi + 0x17], 1
mov ebx, edi
call fcn.0043c140
mov ebx, dword [ebp + 0x1c]
mov dword [esp + 0x20], eax
mov esi, eax
test esi, esi
je 0x45e366
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x45e366
cmp byte [eax + 0x2b], 0
jne 0x45e366
mov ecx, dword [eax]
push 0x5c
push ecx
push str.sqlite__
call fcn.0046a720
add esp, 0xc
test eax, eax
je 0x45e366
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x3c]
mov ecx, dword [esp + 0x1c]
call fcn.00479a70
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x2c], eax
shl eax, 4
mov eax, dword [eax + edx]
mov edx, dword [ecx]
push eax
push 0
push edx
push 0x1c
mov eax, edi
call fcn.0045f990
add esp, 0x10
test eax, eax
jne 0x45e366
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [eax + 0x14]
push ecx
mov ecx, dword [esp + 0x30]
push 0
push edx
mov eax, edi
call fcn.0045fb50
mov eax, dword [edi + 0x28]
mov dword [esp + 0x60], ebx
add ebx, 1
mov dword [esp + 0x30], ebx
add ebx, 1
add esp, 0xc
cmp eax, ebx
jle 0x45dc84
mov ebx, eax
mov eax, dword [esp + 0x54]
push 0x70
push eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x28], ebx
mov ebx, dword [esp + 0x34]
push edi
call fcn.0046f0f0
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx]
mov eax, dword [esp + 0x50]
add esp, 0xc
call fcn.0043c460
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
test eax, eax
mov dword [esp + 0x14], eax
je 0x45e277
jmp 0x45dcc4
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45dcd7
cmp ecx, eax
jne 0x45e264
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x24], 0
jne 0x45dce2
mov byte [esp + 0xf], 0
mov ecx, dword [ebp + 0xc]
test byte [ecx + 0x1c], 0x80
je 0x45dd09
mov edx, dword [eax + 0x38]
and dl, 3
cmp dl, 2
jne 0x45dd09
movzx eax, word [eax + 0x32]
mov ebx, dword [ecx]
mov dword [esp + 0x3c], eax
add eax, 0xffffffff
mov dword [esp + 0x10], eax
jmp 0x45dd2d
test byte [eax + 0x38], 8
movzx ecx, word [eax + 0x34]
mov ebx, dword [eax]
mov dword [esp + 0x3c], ecx
je 0x45dd26
movzx eax, word [eax + 0x32]
sub eax, 1
mov dword [esp + 0x10], eax
jmp 0x45dd2d
add ecx, 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x58]
call fcn.0043c460
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [edi + 0x2c]
cmp ecx, eax
jle 0x45dd48
mov eax, ecx
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x2c]
push edx
push ecx
push ebx
push 0x70
push esi
call fcn.0043c3f0
mov ecx, dword [esp + 0x28]
add esp, 0x14
mov eax, edi
call fcn.0043d070
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
push 0
push edx
push eax
push 0x47
push esi
call fcn.0043c3f0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x70]
movzx eax, word [edx + 0x32]
add esp, 0x14
push 0
push ecx
push eax
push 0x47
push esi
call fcn.0043c3f0
add esp, 0x14
push 0
push 0
push ebx
push 0x24
push esi
call fcn.0043c3f0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push 1
push ecx
push ebx
push 0x62
push esi
mov dword [esp + 0x78], eax
call fcn.0043c3f0
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x1f0]
add esp, 0x14
push 0
push edx
push ecx
push 0x47
push esi
call fcn.0043c3f0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x60]
add esp, 0x14
push 0
push 0x4c230c
push edx
push eax
push 0
push edi
mov eax, 4
call fcn.0043c650
mov ecx, dword [esp + 0x4c]
push 0
push ecx
push 0
push 0x47
push esi
call fcn.0043c3f0
mov edx, dword [esi + 0x6c]
add esp, 0x2c
cmp dword [esp + 0x10], 0
mov dword [esp + 0x28], edx
jle 0x45e069
mov ebx, dword [esp + 0x10]
add dword [edi + 0x38], 0xffffffff
mov eax, dword [edi + 0x38]
lea ecx, [ebx*4]
push 0
push ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x40], eax
call fcn.00419650
add esp, 8
test eax, eax
mov dword [esp + 0x3c], eax
je 0x45e264
push 0
push 0
push 0
push 9
push esi
call fcn.0043c3f0
mov edx, dword [esi + 0x6c]
add esp, 0x14
cmp ebx, 1
mov dword [esp + 0x28], edx
jne 0x45dea1
mov eax, dword [esp + 0x14]
cmp word [eax + 0x32], bx
jne 0x45dea1
cmp byte [eax + 0x36], 0
je 0x45dea1
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x18]
push 0
push eax
push ecx
push 0x33
push esi
call fcn.0043c3f0
add esp, 0x14
xor ebx, ebx
cmp dword [esp + 0x10], ebx
jle 0x45df8d
lea ecx, [ecx]
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x20]
mov esi, dword [eax + ebx*4]
call fcn.004679d0
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
push 0
push ecx
push ebx
push 0x47
push esi
mov dword [esp + 0x44], eax
call fcn.0043c3f0
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
add esp, 0x14
push edi
push ebx
push edx
push 0x5e
push esi
call fcn.0043c3f0
mov eax, dword [ebp + 0x18]
add esp, 0x14
lea ecx, [ebx + eax]
push ecx
push 0
push edi
push 0x34
push esi
call fcn.0043c3f0
mov ecx, dword [esi]
add esp, 0x14
cmp byte [ecx + 0x57], 0
mov edi, eax
je 0x45df1f
mov eax, dword [esp + 0x30]
mov edx, 0xfffffffe
call fcn.0043cde0
jmp 0x45df5e
test edi, edi
jge 0x45df29
mov eax, dword [esi + 0x6c]
sub eax, 1
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
cmp byte [eax + edx*4 + 1], 0
lea ecx, [eax + edx*4]
je 0x45df4f
mov edx, dword [esp + 0x30]
push edx
mov eax, 0xfffffffe
mov edx, esi
call fcn.0043ced0
add esp, 4
jmp 0x45df5e
mov eax, dword [esp + 0x30]
test eax, eax
je 0x45df5e
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfe
mov eax, dword [esp + 0x3c]
mov dword [eax + ebx*4], edi
mov eax, dword [esi + 0x6c]
test eax, eax
jle 0x45df79
mov edx, dword [esi + 0x68]
lea ecx, [eax + eax*4]
mov word [edx + ecx*4 - 0x12], 0x80
mov edi, dword [ebp + 8]
add ebx, 1
cmp ebx, dword [esp + 0x10]
jl 0x45deb0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
push 0x47
push esi
call fcn.0043c3f0
mov edx, dword [esp + 0x4c]
add esp, 0x14
push 0
push edx
push 0
push 9
push esi
call fcn.0043c3f0
mov ecx, dword [esi]
mov eax, dword [esi + 0x6c]
add esp, 0x14
cmp byte [ecx + 0x57], 0
je 0x45dfca
mov ecx, 0x4d6798
jmp 0x45dfd8
mov ecx, dword [esp + 0x28]
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x68]
lea ecx, [ecx + edx*4 - 0x14]
xor ebx, ebx
cmp dword [esp + 0x10], ebx
mov dword [ecx + 8], eax
jle 0x45e029
mov edx, dword [esi]
cmp byte [edx + 0x57], 0
mov ecx, dword [esi + 0x6c]
je 0x45dff5
mov eax, 0x4d6798
jmp 0x45e005
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + ebx*4]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + edx*4]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x18]
mov eax, dword [esp + 0x24]
lea edx, [ebx + ecx]
push edx
push ebx
push eax
push 0x5e
push esi
call fcn.0043c3f0
add ebx, 1
add esp, 0x14
cmp ebx, dword [esp + 0x10]
jl 0x45dfe3
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x3c]
add edx, dword [eax + 0x38]
mov ecx, dword [esp + 0x38]
not ecx
jns 0x45e04f
push ecx
push esi
mov edi, eax
call fcn.0043ca00
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x28]
add esp, 8
jmp 0x45e058
mov eax, dword [eax + 0x40]
mov edx, dword [esi + 0x6c]
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
call fcn.00419270
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
push 0
push 0x4c2334
push eax
push ecx
push 1
push edi
mov eax, 2
call fcn.0043c650
mov edx, dword [esp + 0x34]
add esp, 0x18
cmp dword [edx + 0x1f0], 0
push 0
je 0x45e17f
mov eax, dword [esp + 0x1c]
push 0
push eax
push 0x32
push esi
call fcn.0043c3f0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push 0
push 0
push ecx
push 0x10
push esi
mov dword [esp + 0x4c], eax
call fcn.0043c3f0
mov edx, dword [ebp + 0x18]
add esp, 0x14
push edx
push 0
push ebx
push 0x18
push esi
mov dword [esp + 0x44], eax
call fcn.0043c3f0
mov dword [esp + 0x50], eax
mov eax, dword [esi]
add esp, 0x14
cmp byte [eax + 0x57], 0
jne 0x45e101
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x68]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov byte [eax + 1], 0xfd
mov dword [eax + 0x10], 1
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
mov ecx, dword [esi + 0x6c]
je 0x45e113
mov eax, 0x4d6798
jmp 0x45e120
mov eax, dword [esp + 0x38]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + edx*4]
push 0
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
push 0x27
push esi
call fcn.0043c3f0
mov edx, dword [esi]
mov eax, dword [esi + 0x6c]
add esp, 0x14
cmp byte [edx + 0x57], 0
je 0x45e148
mov ecx, 0x4d6798
jmp 0x45e155
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 0x68]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4]
mov dword [ecx + 8], eax
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
mov ecx, dword [esi + 0x6c]
je 0x45e16d
mov eax, 0x4d6798
mov dword [eax + 8], ecx
jmp 0x45e190
mov eax, dword [esp + 0x3c]
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea eax, [eax + edx*4]
mov dword [eax + 8], ecx
jmp 0x45e190
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
push 0x27
push esi
call fcn.0043c3f0
add esp, 0x14
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
push 0
push 0x4c235c
push edx
push eax
push 0
push edi
mov eax, 1
call fcn.0043c650
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x5c]
push ecx
push 3
push edx
push 0x61
push esi
call fcn.0043c3f0
mov ecx, dword [esi]
add esp, 0x2c
cmp byte [ecx + 0x57], 0
je 0x45e1db
mov eax, 0x4c912c
xor edx, edx
call fcn.0043cde0
jmp 0x45e1ff
test eax, eax
jge 0x45e1e5
mov eax, dword [esi + 0x6c]
sub eax, 1
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea ecx, [ecx + eax*4]
push 0x4c912c
xor eax, eax
mov edx, esi
call fcn.0043ced0
add esp, 4
mov edx, dword [esp + 0x48]
mov ebx, dword [ebp + 0x14]
push 0
push edx
push ebx
push 0x7f
push esi
call fcn.0043c3f0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push eax
push ecx
push ebx
push 0x80
push esi
call fcn.0043c3f0
mov eax, dword [esi + 0x6c]
add esp, 0x14
test eax, eax
jle 0x45e242
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov word [eax + edx*4 - 0x12], 8
mov edx, dword [esi]
cmp byte [edx + 0x57], 0
mov ecx, dword [esi + 0x6c]
je 0x45e254
mov eax, 0x4d6798
jmp 0x45e261
mov eax, dword [esp + 0x64]
mov edx, dword [esi + 0x68]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x45dcc0
cmp dword [ebp + 0x10], 0
jne 0x45e366
cmp byte [esp + 0xf], 0
je 0x45e366
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
push 0
push edi
push ecx
push 0x62
push esi
call fcn.0043c3f0
add esp, 0x14
push 0
push 0
push edi
push 0x11
push esi
call fcn.0043c3f0
mov edx, dword [esp + 0x6c]
add esp, 0x14
push 0
push edx
push 0
push 0x4b
push esi
mov dword [esp + 0x78], eax
call fcn.0043c3f0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x58]
add esp, 0x14
push eax
push 3
push ecx
push 0x61
push esi
call fcn.0043c3f0
mov ecx, dword [esi]
add esp, 0x14
cmp byte [ecx + 0x57], 0
je 0x45e2f8
mov eax, 0x4c912c
xor edx, edx
call fcn.0043cde0
jmp 0x45e31c
test eax, eax
jge 0x45e302
mov eax, dword [esi + 0x6c]
sub eax, 1
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
lea ecx, [eax + edx*4]
push 0x4c912c
xor eax, eax
mov edx, esi
call fcn.0043ced0
add esp, 4
mov ebx, dword [esp + 0x48]
mov edi, dword [ebp + 0x14]
push 0
push ebx
push edi
push 0x7f
push esi
call fcn.0043c3f0
mov ecx, dword [esp + 0x2c]
add esp, 0x14
push ebx
push ecx
push edi
push 0x80
push esi
call fcn.0043c3f0
mov eax, dword [esi + 0x6c]
add esp, 0x14
test eax, eax
jle 0x45e35b
lea edx, [eax + eax*4]
mov eax, dword [esi + 0x68]
mov word [eax + edx*4 - 0x12], 8
mov edx, dword [esp + 0x64]
mov eax, esi
call fcn.0043cd40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret