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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, edx
mov ebp, ecx
mov edi, dword [ebp + 0xec]
mov ebx, dword [ebp]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
test edi, edi
je 0x4f8f17
call fcn.004f8ae0
mov dword [ebp + 0xfc], 0
cmp dword [edi + 0x2c], 1
jl 0x4f8f17
cmp byte [ebx + 0xb1], 0
jne 0x4f8da2
mov eax, dword [ebp + 0x74]
mov ecx, ebp
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
lea ecx, [ebp + 0xbc]
test esi, esi
je 0x4f8bc9
mov eax, dword [esi + 4]
sub eax, dword [ecx]
add eax, dword [esi]
mov dword [ebp + 0xc0], eax
push ecx
push str.CREATE_VIRTUAL_TABLE__T
push ebx
call fcn.00473fa0
mov edi, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov esi, 0xffff8000
mov dword [esp + 0x20], edi
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x4f8c08
mov ecx, dword [ebx + 0x10]
xor esi, esi
add ecx, 0xc
cmp dword [ecx], edx
je 0x4f8c08
nop word [eax + eax]
lea ecx, [ecx + 0x10]
inc esi
cmp dword [ecx], edx
jne 0x4f8c00
push dword [ebp + 0x58]
mov eax, dword [eax]
mov ecx, esi
push edi
push eax
push eax
mov eax, dword [ebx + 0x10]
shl ecx, 4
mov dword [esp + 0x24], ecx
push dword [eax + ecx]
push str.UPDATE__Q.sqlite_master_SET_typetable__name_Q__tbl_name_Q__rootpage0__sql_Q_WHERE_rowid_d
push ebp
call fcn.004bf5f0
mov edi, dword [ebp + 8]
add esp, 0x1c
test edi, edi
jne 0x4f8c4f
cmp dword [ebp + 0x74], edi
jne 0x4f8c46
mov eax, dword [ebp]
test byte [eax + 0x50], 8
jne 0x4f8c46
mov byte [ebp + 0x17], 1
mov ecx, ebp
call fcn.00495c60
mov edi, eax
mov ecx, dword [ebp]
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 8]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + eax + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebx + 0x74]
inc edx
cmp dword [ebx + 0x78], ecx
jg 0x4f8c80
push edx
push 1
push esi
mov edx, 0x63
mov ecx, ebx
call fcn.00495eb0
add esp, 0xc
jmp 0x4f8cab
lea eax, [ecx + 1]
mov dword [ebx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 0x70]
mov dword [eax + ecx*4], 0x63
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x4f8cca
push 0
push 0
push 0
mov edx, 0xa5
mov ecx, edi
call fcn.00495eb0
add esp, 0xc
jmp 0x4f8cfd
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xa5
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
push ebx
push dword [eax]
push str.name_Q_AND_sql_Q
push dword [esp + 0x28]
call fcn.00473fa0
push 0
push eax
mov edx, esi
mov ecx, edi
call fcn.004965b0
add esp, 0x18
test ebx, ebx
je 0x4f8d34
mov ecx, dword [esp + 0x1c]
mov edx, ebx
call fcn.00471640
mov eax, dword [esp + 0x18]
mov ecx, edi
inc dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x2c]
mov edx, ebx
push dword [eax]
call fcn.00495fd0
mov ecx, dword [edi + 0x74]
add esp, 4
cmp dword [edi + 0x78], ecx
jg 0x4f8d6f
push 0
push ebx
push esi
mov edx, 0xaa
mov ecx, edi
call fcn.00495eb0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xaa
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
lea ecx, [ebx + 0x180]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x30]
push 0
mov edx, dword [eax]
call fcn.00476460
add esp, 4
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4f8ee4
mov eax, dword [eax]
test eax, eax
je 0x4f8ee4
cmp dword [eax], 3
jl 0x4f8ee4
cmp dword [eax + 0x5c], 0
je 0x4f8ee4
mov ebx, dword [edi]
test ebx, ebx
je 0x4f8e0f
lea ecx, [ebx + 1]
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4f8e00
sub ebx, ecx
and ebx, 0x3fffffff
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4f8ee0
mov ebp, dword [eax + 8]
cmp byte [ebp + 0x2b], 0
jne 0x4f8eca
test dword [ebp + 0x1c], 0x1000
jne 0x4f8eca
mov ecx, dword [ebp]
mov esi, ebx
mov edx, dword [edi]
test ecx, ecx
jne 0x4f8e4c
neg edx
sbb edx, edx
jmp 0x4f8e96
test edx, edx
je 0x4f8eca
mov edi, ecx
test ebx, ebx
je 0x4f8e77
mov al, byte [edi]
dec esi
test al, al
je 0x4f8e78
movzx ecx, byte [edx]
movzx eax, al
mov al, byte [eax + 0x597a38]
cmp al, byte [ecx + 0x597a38]
jne 0x4f8e78
inc edi
inc edx
test esi, esi
jg 0x4f8e56
dec esi
test esi, esi
js 0x4f8e9a
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x597a38]
movzx eax, byte [edi]
movzx edx, byte [eax + 0x597a38]
mov eax, dword [esp + 0x14]
sub edx, ecx
test edx, edx
jne 0x4f8eca
mov eax, dword [ebp]
cmp byte [eax + ebx], 0x5f
jne 0x4f8ec6
mov ecx, dword [esp + 0x20]
inc eax
add eax, ebx
push eax
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x5c]
call eax
add esp, 4
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4f8eca
or dword [ebp + 0x1c], 0x1000
jmp 0x4f8eca
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4f8e21
mov ebp, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add ecx, 8
push edi
call fcn.00476510
add esp, 4
test eax, eax
je 0x4f8f0d
push ebx
call fcn.00471d00
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp + 0xec], 0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret