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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x64]
push ebx
mov dword [esp + 0x48], eax
inc eax
mov dword [esp + 0x38], eax
inc eax
mov ebx, eax
mov dword [esp + 0x20], ebx
inc ebx
mov dword [esp + 0x18], ebx
inc ebx
mov dword [esp + 0x2c], ebx
inc ebx
push ebp
push esi
mov esi, dword [esp + 0x64]
mov dword [esp + 0x4c], ebx
inc ebx
push edi
mov edi, dword [esp + 0x64]
mov ecx, dword [edi]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x48], ebx
inc ebx
cmp eax, ebx
mov dword [esp + 0x20], ecx
mov byte [esp + 0x13], 1
mov dword [esp + 0x74], ebx
jg 0x4fde54
mov eax, ebx
mov ebp, dword [edi + 8]
mov dword [edi + 0x48], eax
test ebp, ebp
jne 0x4fdea1
push edi
call fcn.004d6270
mov ebp, eax
add esp, 4
mov dword [edi + 8], eax
test ebp, ebp
je 0x4fde84
push 0
push 0
push 0
push 0x9f
push ebp
call fcn.004cf760
add esp, 0x14
cmp dword [edi + 0x19c], 0
jne 0x4fde99
mov edx, dword [edi]
test byte [edx + 0x3c], 8
jne 0x4fde99
mov byte [edi + 0x17], 1
test ebp, ebp
je 0x4fe5c1
test esi, esi
je 0x4fe5c1
cmp dword [esi + 0x1c], 0
je 0x4fe5c1
mov eax, dword [esi]
push 0
push 0x58b20c
push eax
push str.sqlite__
call fcn.004c7f40
add esp, 0x10
test eax, eax
jne 0x4fe5c1
mov ecx, dword [esp + 0x20]
mov eax, esi
mov esi, dword [eax + 0x40]
call fcn.004c86c0
mov edx, dword [esp + 0x20]
mov esi, eax
mov eax, dword [edx + 0x10]
mov edx, dword [esp + 0x68]
mov ecx, esi
shl ecx, 4
mov ecx, dword [ecx + eax]
mov eax, dword [edx]
push ecx
push 0
push eax
push 0x1c
mov eax, edi
mov dword [esp + 0x4c], esi
call fcn.004e4090
add esp, 0x10
test eax, eax
jne 0x4fe5c1
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov edx, dword [eax + 0x1c]
push ecx
push 0
push edx
push esi
push edi
call fcn.004d2240
mov eax, dword [esp + 0x8c]
mov edi, dword [edi + 0x44]
mov dword [esp + 0x60], eax
inc eax
mov dword [esp + 0x2c], eax
inc eax
add esp, 0x14
cmp edi, eax
jle 0x4fdf44
mov eax, edi
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x68]
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0x3c]
push 0x37
push eax
push edx
push ecx
mov eax, esi
call fcn.004f9730
mov eax, dword [esi]
push eax
mov eax, dword [esp + 0x4c]
mov edi, ebp
call fcn.004dab10
mov esi, dword [esi + 8]
add esp, 0x14
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4fe512
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4fdf93
cmp eax, esi
jne 0x4fe503
cmp dword [esi + 0x24], 0
jne 0x4fdf9e
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x68]
test byte [eax + 0x2a], 0x20
je 0x4fdfbf
mov ecx, dword [esi + 0x38]
and cl, 3
cmp cl, 2
jne 0x4fdfbf
movzx ecx, word [esi + 0x32]
mov eax, dword [eax]
mov dword [esp + 0x34], ecx
jmp 0x4fdfd3
test byte [esi + 0x38], 8
movzx ecx, word [esi + 0x34]
mov eax, dword [esi]
mov dword [esp + 0x34], ecx
je 0x4fdfd3
movzx ecx, word [esi + 0x32]
dec ecx
push eax
mov eax, dword [esp + 0x54]
mov edi, ebp
mov dword [esp + 0x18], ecx
call fcn.004dab10
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x68]
mov eax, dword [edi + 0x48]
add ebx, edx
add esp, 4
cmp eax, ebx
jg 0x4fdffa
mov eax, ebx
mov edx, dword [esp + 0x18]
mov dword [edi + 0x48], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 0x2c]
push eax
push ecx
push edx
push 0x37
push ebp
call fcn.004cf760
mov ecx, esi
mov eax, edi
call fcn.004f8750
mov ebx, dword [esp + 0x6c]
mov eax, dword [esp + 0x48]
push 0
push ebx
push eax
push 0x17
push ebp
call fcn.004cf760
mov edi, dword [esp + 0x6c]
movzx edx, word [esi + 0x32]
push 0
lea ecx, [edi + 2]
push ecx
push edx
push 0x17
push ebp
call fcn.004cf760
push edi
push ebx
push 0
push 0x24
push ebp
call fcn.004cf760
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
add esp, 0x50
test ecx, ecx
je 0x4fe08a
cmp byte [edx + 0x41], 0
jne 0x4fe08a
mov eax, dword [ebp + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
push edx
call fcn.004cf9f0
mov dword [esi + 0x10], 0x58b124
mov byte [esi + 1], 0xfb
jmp 0x4fe09a
push edx
mov ecx, 0x58b124
mov eax, 0xfffffffb
call fcn.004cf9f0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp]
add esp, 4
dec eax
cmp byte [ecx + 0x41], 0
je 0x4fe0b1
mov eax, 0x5a2838
jmp 0x4fe0ba
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov ecx, dword [esp + 0x18]
push 0
push 0
push ecx
push 0x6e
push ebp
mov byte [eax + 3], 2
call fcn.004cf760
push 0
mov edx, ebx
push edx
push 0
push 0x17
push ebp
mov dword [esp + 0x84], eax
call fcn.004cf760
mov eax, dword [ebp + 0x20]
add esp, 0x28
cmp dword [esp + 0x14], 0
mov dword [esp + 0x34], eax
jle 0x4fe369
mov eax, ebp
call fcn.004cf7f0
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
lea ecx, [edi*4]
mov ebx, eax
push 0
push ecx
mov dword [esp + 0x48], ebx
call fcn.004cb940
add esp, 8
mov dword [esp + 0x30], eax
test eax, eax
je 0x4fe4fb
push 0
push 0
push 0
push 0xe
push ebp
call fcn.004cf760
mov edx, dword [ebp + 0x20]
add esp, 0x14
mov dword [esp + 0x34], edx
cmp edi, 1
jne 0x4fe16d
mov eax, dword [esp + 0x1c]
cmp word [eax + 0x32], di
jne 0x4fe16d
cmp byte [eax + 0x36], 0
je 0x4fe16d
mov eax, dword [esp + 0x74]
push 0
push ebx
push eax
push 0x4d
push ebp
call fcn.004cf760
add esp, 0x14
xor ebx, ebx
cmp dword [esp + 0x14], ebx
jle 0x4fe272
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x20]
mov esi, dword [edx + ebx*4]
mov edi, dword [esp + 0x64]
call fcn.004f1a80
push 0
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
push eax
push ebx
push 0x17
push ebp
call fcn.004cf760
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
push esi
push ebx
push ecx
push 0x30
push ebp
call fcn.004cf760
mov edx, dword [esp + 0x9c]
lea eax, [ebx + edx]
push eax
push 0
push esi
push 0x4e
push ebp
call fcn.004cf760
mov edx, dword [ebp]
mov edi, eax
mov eax, dword [ebp + 4]
add esp, 0x3c
mov ecx, edi
test eax, eax
je 0x4fe22d
cmp byte [edx + 0x41], 0
jne 0x4fe22d
test edi, edi
jge 0x4fe1ef
mov ecx, dword [ebp + 0x20]
dec ecx
lea ecx, [ecx + ecx*4]
lea esi, [eax + ecx*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
push edx
call fcn.004cf9f0
add esp, 4
cmp dword [esp + 0x28], 0
mov dword [esi + 0x10], 0
jne 0x4fe220
mov dword [esi + 0x10], 0
mov byte [esi + 1], 0
jmp 0x4fe23f
mov edx, dword [esp + 0x28]
mov dword [esi + 0x10], edx
mov byte [esi + 1], 0xfc
jmp 0x4fe23f
mov ecx, dword [esp + 0x28]
push edx
mov eax, 0xfffffffc
call fcn.004cf9f0
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [eax + ebx*4], edi
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp]
dec eax
cmp byte [ecx + 0x41], 0
je 0x4fe25a
mov eax, 0x5a2838
jmp 0x4fe263
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
inc ebx
cmp ebx, dword [esp + 0x14]
mov byte [eax + 3], 0x80
jl 0x4fe180
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x14]
push 0
push ecx
push edi
push 0x17
push ebp
call fcn.004cf760
mov edx, dword [esp + 0x54]
push 0
push edx
push 0
push 0xe
push ebp
call fcn.004cf760
mov ecx, dword [esp + 0x5c]
add esp, 0x28
dec ecx
mov eax, ebp
call fcn.004cf9b0
mov ebx, dword [esp + 0x30]
xor esi, esi
test edi, edi
jle 0x4fe301
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebx + esi*4]
mov edx, dword [ebp + 0x18]
dec ecx
mov dword [edx + 0x5c], ecx
mov ecx, dword [ebp + 0x20]
test eax, eax
jge 0x4fe2c7
mov eax, ecx
dec eax
mov edx, dword [ebp]
cmp byte [edx + 0x41], 0
je 0x4fe2d7
mov eax, 0x5a2838
jmp 0x4fe2e0
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x74]
lea ecx, [esi + eax]
push ecx
push esi
push edx
push 0x30
push ebp
call fcn.004cf760
inc esi
add esp, 0x14
cmp esi, edi
jl 0x4fe2b0
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x4fe31d
mov edx, dword [esp + 0x40]
lea edx, [edx*4 + 4]
sub eax, edx
mov edx, dword [ebp + 0x20]
mov dword [eax], edx
mov eax, dword [ebp + 0x20]
dec eax
mov dword [ecx + 0x5c], eax
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x208], 0
je 0x4fe33a
mov eax, ebx
call fcn.004bf640
jmp 0x4fe369
cmp ebx, dword [ecx + 0x114]
jb 0x4fe360
cmp ebx, dword [ecx + 0x118]
jae 0x4fe360
mov edx, dword [ecx + 0x110]
mov dword [ebx], edx
dec dword [ecx + 0xfc]
mov dword [ecx + 0x110], ebx
jmp 0x4fe369
push ebx
call fcn.004bf5d0
add esp, 4
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x44]
push ebx
push edi
push 1
push 0x24
push ebp
call fcn.004cf760
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
add esp, 0x14
test ecx, ecx
je 0x4fe3b4
cmp byte [edx + 0x41], 0
jne 0x4fe3b4
mov eax, dword [ebp + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
push edx
call fcn.004cf9f0
mov dword [esi + 0x10], 0x58b148
mov byte [esi + 1], 0xfb
jmp 0x4fe3c4
push edx
mov ecx, 0x58b148
mov eax, 0xfffffffb
call fcn.004cf9f0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp]
add esp, 4
dec eax
cmp byte [ecx + 0x41], 0
je 0x4fe3db
mov eax, 0x5a2838
jmp 0x4fe3e4
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 8
push ebp
mov byte [eax + 3], 2
call fcn.004cf760
mov eax, dword [esp + 0x5c]
mov ecx, edi
mov esi, ebp
call fcn.004d1f90
mov eax, dword [esp + 0x4c]
push ebx
push 3
push eax
push 0x32
push ebp
call fcn.004cf760
mov ecx, dword [ebp + 4]
mov edx, dword [ebp]
add esp, 0x28
test ecx, ecx
je 0x4fe474
cmp byte [edx + 0x41], 0
jne 0x4fe474
test eax, eax
jge 0x4fe434
mov eax, dword [ebp + 0x20]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
push edx
call fcn.004cf9f0
mov eax, 0x58fc48
mov dword [esi + 0x10], 0
call fcn.004bf8c0
cdq
push edx
mov edx, dword [ebp]
push eax
push 0x58fc48
call fcn.004cbb70
add esp, 0x10
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x4fe484
push edx
mov ecx, 0x58fc48
xor eax, eax
call fcn.004cf9f0
add esp, 4
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x70]
push 0
push edi
push esi
push 0x54
push ebp
call fcn.004cf760
push edi
push ebx
push esi
push 0x5f
push ebp
call fcn.004cf760
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp]
add esp, 0x28
dec eax
cmp byte [ecx + 0x41], 0
je 0x4fe4ba
mov eax, 0x5a2838
jmp 0x4fe4c3
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov byte [eax + 3], 8
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x5c]
dec ecx
mov dword [edx + 0x5c], ecx
mov ecx, dword [ebp + 0x20]
test eax, eax
jge 0x4fe4df
mov eax, ecx
dec eax
mov edx, dword [ebp]
cmp byte [edx + 0x41], 0
je 0x4fe4ef
mov eax, 0x5a2838
jmp 0x4fe4f8
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
mov dword [eax + 8], ecx
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x74]
mov esi, dword [esi + 0x14]
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x4fdf83
cmp dword [esp + 0x6c], 0
jne 0x4fe5c1
cmp byte [esp + 0x13], 0
je 0x4fe5c1
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
push 0
push esi
push eax
push 0x33
push ebp
call fcn.004cf760
push 0
push 0
push esi
push 0x2f
push ebp
call fcn.004cf760
mov ecx, dword [esp + 0x78]
push 0
push ecx
push 0
push 0x1a
push ebp
mov esi, eax
call fcn.004cf760
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x60]
push 0
push 0x58fc48
push edx
push 0x32
push ebp
mov ecx, 3
call fcn.004d6430
mov ebx, dword [esp + 0xa4]
mov edi, dword [esp + 0xc0]
add esp, 0x50
push 0
push ebx
push edi
push 0x54
push ebp
call fcn.004cf760
mov eax, dword [esp + 0x38]
push ebx
push eax
push edi
push 0x5f
push ebp
call fcn.004cf760
add esp, 0x28
mov dl, 8
mov ecx, ebp
call fcn.004cf980
pop edi
mov ecx, esi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
jmp fcn.004cf9b0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret