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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0xc], edx
mov dword [ebp + 0x10], eax
inc eax
mov edx, eax
mov byte [esp + 0x30], 1
mov dword [esp + 0x2c], edx
inc edx
mov dword [esp + 0x1c], edx
inc edx
mov dword [esp + 0x34], edx
inc edx
push ebx
mov ebx, ecx
mov dword [esp + 0x48], edx
inc edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], edx
inc edx
push esi
cmp dword [ebx + 0x4c], edx
mov ecx, edx
mov esi, dword [ebx + 8]
cmovg ecx, dword [ebx + 0x4c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], edx
mov dword [ebx + 0x4c], ecx
push edi
mov edi, dword [ebx]
mov dword [esp + 0x48], edi
test esi, esi
jne 0x4949cc
mov ecx, ebx
call fcn.00478f40
mov esi, eax
mov dword [ebx + 8], esi
test esi, esi
je 0x4949af
mov edx, 0x9e
mov ecx, esi
call fcn.00479290
cmp dword [ebx + 0x1a0], 0
jne 0x4949c4
mov eax, dword [ebx]
test byte [eax + 0x40], 8
jne 0x4949c4
mov byte [ebx + 0x17], 1
test esi, esi
je 0x4950ab
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4950ab
cmp dword [eax + 0x1c], 0
je 0x4950ab
mov edx, dword [eax]
mov ecx, str.sqlite__
push 0
push 0x564964
call fcn.004a0780
add esp, 8
test eax, eax
jne 0x4950ab
mov edx, dword [esp + 0x18]
mov ecx, edi
mov edx, dword [edx + 0x40]
call fcn.004ad940
mov ecx, dword [edi + 0x10]
mov edx, eax
mov edi, dword [esp + 0x18]
add edx, edx
mov dword [esp + 0x30], eax
push dword [ecx + edx*8]
mov edx, 0x1c
mov ecx, ebx
push 0
push dword [edi]
call fcn.00496780
add esp, 0xc
test eax, eax
jne 0x4950ab
push dword [edi]
mov edx, dword [esp + 0x34]
mov ecx, ebx
push eax
push dword [edi + 0x1c]
call fcn.00496810
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov edx, ecx
inc ecx
mov dword [esp + 0x10], ecx
inc ecx
cmp dword [ebx + 0x48], ecx
push 0x36
cmovg ecx, dword [ebx + 0x48]
push edi
push dword [esp + 0x38]
mov dword [ebx + 0x48], ecx
mov ecx, ebx
mov dword [esp + 0x68], edx
call fcn.004a53c0
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov ecx, esi
push dword [edi]
call fcn.00479450
mov ecx, dword [edi + 8]
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x494ff8
jmp 0x494aa0
test eax, eax
je 0x494aac
cmp eax, ecx
jne 0x494fe9
mov eax, dword [esp + 0x3c]
xor edx, edx
cmp dword [ecx + 0x24], edx
movzx eax, al
cmove eax, edx
test byte [edi + 0x2a], 0x20
mov dword [esp + 0x3c], eax
je 0x494d34
mov eax, dword [ecx + 0x38]
and al, 3
cmp al, 2
jne 0x494d34
movzx ebx, word [ecx + 0x32]
mov eax, dword [edi]
lea edi, [ebx - 1]
mov edx, dword [esp + 0x50]
mov ecx, esi
push eax
mov dword [esp + 0x20], edi
call fcn.00479450
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
add ecx, edi
cmp dword [edx + 0x4c], ecx
push dword [esp + 0x30]
cmovg ecx, dword [edx + 0x4c]
mov dword [edx + 0x4c], ecx
mov edx, 0x36
push dword [eax + 0x2c]
mov ecx, esi
push dword [esp + 0x18]
call fcn.00479220
mov edx, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x34]
call fcn.0047a030
push dword [esp + 0x54]
mov edx, 0x16
mov ecx, esi
push ebx
call fcn.00479370
mov ebx, dword [ebp + 0x10]
mov edx, 0x16
mov ecx, esi
lea eax, [ebx + 2]
push eax
mov eax, dword [esp + 0x18]
movzx eax, word [eax + 0x32]
push eax
call fcn.00479370
push 0xfffffffffffffffb
push 0x5643d4
push ebx
lea eax, [ebx + 1]
mov edx, 0x23
push eax
push 0
mov ecx, esi
call fcn.00479660
mov eax, dword [esi]
add esp, 0x24
cmp byte [eax + 0x45], 0
jne 0x494b91
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 2
mov ebx, dword [esp + 0x10]
mov edx, 0x6c
push ebx
mov ecx, esi
call fcn.00479300
add esp, 4
mov dword [esp + 0x58], eax
mov edx, 0x16
mov ecx, esi
push dword [esp + 0x38]
push 0
call fcn.00479370
mov eax, dword [esi + 0x20]
add esp, 8
mov dword [esp + 0x24], eax
test edi, edi
jle 0x494e38
mov ecx, esi
call fcn.00479930
lea ecx, [edi*4]
mov ebx, eax
push 0
push ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x4c], ebx
call fcn.0045a000
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x494fde
mov edx, 0xd
mov ecx, esi
call fcn.00479290
mov eax, dword [esi + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
cmp edi, 1
jne 0x494c3a
cmp word [eax + 0x32], di
jne 0x494c3a
cmp byte [eax + 0x36], 0
je 0x494c3a
push ebx
push dword [esp + 0x18]
lea edx, [edi + 0x4c]
mov ecx, esi
call fcn.00479370
mov eax, dword [esp + 0x14]
add esp, 8
xor ebx, ebx
test edi, edi
jle 0x494ccb
mov edx, dword [eax + 0x20]
mov ecx, dword [esp + 0x34]
mov edx, dword [edx + ebx*4]
call fcn.004988a0
push dword [esp + 0x38]
mov edx, 0x16
mov ecx, esi
push ebx
mov edi, eax
call fcn.00479370
push dword [esp + 0x30]
mov edx, 0x2f
mov ecx, esi
push ebx
push dword [esp + 0x20]
call fcn.00479220
mov eax, dword [esp + 0x28]
add esp, 0x14
add eax, ebx
mov edx, 0x4e
mov ecx, esi
push 0xfffffffffffffffc
push edi
push eax
push 0
push dword [esp + 0x38]
call fcn.00479660
mov ecx, dword [esp + 0x34]
add esp, 0x14
mov dword [ecx + ebx*4], eax
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x494cba
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 0x80
mov edi, dword [esp + 0x1c]
inc ebx
mov eax, dword [esp + 0xc]
cmp ebx, edi
jl 0x494c44
push dword [esp + 0x38]
mov edx, 0x16
mov ecx, esi
push edi
call fcn.00479370
mov edx, dword [esp + 0x4c]
add esp, 8
mov ecx, esi
call fcn.004793e0
mov edx, dword [esp + 0x24]
mov ecx, esi
lea edx, [edx - 1]
call fcn.00479c60
mov ebx, dword [esp + 0x1c]
xor edi, edi
test ebx, ebx
jle 0x494dc4
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x20]
dec ecx
mov edx, dword [eax + edi*4]
mov eax, dword [esi + 0x18]
mov dword [eax + 0x60], ecx
mov eax, dword [esi + 0x20]
mov dword [esp + 0x1c], eax
test edx, edx
jns 0x494d25
lea edx, [eax - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x494d4e
mov eax, 0x5a2a64
jmp 0x494d57
test byte [ecx + 0x38], 8
movzx ebx, word [ecx + 0x34]
mov eax, dword [ecx]
je 0x494adc
movzx edi, word [ecx + 0x32]
dec edi
jmp 0x494adf
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x494d86
mov eax, dword [esp + 0x14]
mov edx, 0x2f
add eax, edi
mov ecx, esi
push eax
push edi
push dword [esp + 0x18]
call fcn.004791e0
add esp, 0xc
jmp 0x494dbb
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x2f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edi
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x14]
add eax, edi
mov dword [ecx + 0xc], eax
inc edi
cmp edi, ebx
jl 0x494d06
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x494de0
mov eax, dword [esp + 0x44]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 0x48]
dec eax
mov dword [edx + 0x60], eax
cmp dword [edi + 0x1c8], 0
je 0x494e01
mov edx, dword [esp + 0x20]
mov ecx, edi
call fcn.00459cc0
jmp 0x494e34
mov ecx, dword [esp + 0x20]
cmp ecx, dword [edi + 0x120]
jb 0x494e2b
cmp ecx, dword [edi + 0x124]
jae 0x494e2b
mov eax, dword [edi + 0x11c]
mov dword [ecx], eax
dec dword [edi + 0x108]
mov dword [edi + 0x11c], ecx
jmp 0x494e34
push ecx
call fcn.00459c50
add esp, 4
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x28]
mov edx, 0x23
push 0xfffffffffffffffb
push 0x568670
push edi
push dword [ebp + 0x10]
mov ecx, esi
push 1
call fcn.00479660
mov eax, dword [esi]
add esp, 0x14
cmp byte [eax + 0x45], 0
jne 0x494e6e
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 2
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x494e91
push 0
push dword [esp + 0x28]
mov edx, 7
mov ecx, esi
push ebx
call fcn.004791e0
add esp, 0xc
jmp 0x494ec4
mov edx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 7
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x4c]
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.00494860
push 0
push 0x56e984
push edi
push 3
push dword [esp + 0x58]
mov edx, 0x31
mov ecx, esi
call fcn.00479660
mov eax, dword [esi + 0x18]
add esp, 0x1c
mov ecx, dword [esi + 0x20]
mov ebx, dword [esp + 0x2c]
cmp dword [eax + 0x58], ecx
jg 0x494f19
push 0
push ebx
push dword [ebp + 0xc]
mov edx, 0x4a
mov ecx, esi
call fcn.004791e0
mov edx, dword [ebp + 0xc]
add esp, 0xc
jmp 0x494f4b
mov edx, dword [ebp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x4a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x494f6a
push ebx
push edi
push edx
mov edx, 0x4b
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x494f95
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x4b
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x494fab
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 8
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [esi + 0x20]
test ecx, ecx
jns 0x494fc3
lea ecx, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x494fd2
mov eax, 0x5a2a64
jmp 0x494fdb
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x494aa0
test eax, eax
jne 0x4950ab
cmp byte [esp + 0x3c], al
je 0x4950ab
mov ebx, dword [esp + 0x4c]
lea edx, [eax + 0x32]
push ebx
push dword [esp + 0x60]
mov ecx, esi
call fcn.00479370
push ebx
mov edx, 0x2e
mov ecx, esi
call fcn.00479300
add esp, 0xc
mov edx, 0x19
mov ecx, esi
mov edi, eax
push dword [esp + 0x50]
push 0
call fcn.00479370
mov ebx, dword [esp + 0x30]
mov edx, 0x31
push 0
push 0x56e984
push ebx
push 3
push dword [esp + 0x58]
mov ecx, esi
call fcn.00479660
add esp, 0x1c
mov edx, 0x4a
mov ecx, esi
push dword [esp + 0x2c]
push dword [ebp + 0xc]
call fcn.00479370
push dword [esp + 0x34]
mov edx, 0x4b
mov ecx, esi
push ebx
push dword [ebp + 0xc]
call fcn.00479220
mov eax, dword [esi]
add esp, 0x14
cmp byte [eax + 0x45], 0
jne 0x4950a2
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 8
mov edx, edi
mov ecx, esi
call fcn.00479c60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret