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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0xe8]
mov ebx, dword [edi]
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], ebx
test eax, eax
je 0x48febe
call fcn.0048fa30
mov eax, dword [esp + 0xc]
mov dword [edi + 0xf8], 0
cmp dword [eax + 0x2c], 1
jl 0x48febe
cmp byte [ebx + 0xb1], 0
jne 0x48fd07
mov eax, dword [edi + 0x74]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
lea ecx, [edi + 0xb8]
test esi, esi
je 0x48fb1b
mov eax, dword [esi + 4]
sub eax, dword [ecx]
add eax, dword [esi]
mov dword [edi + 0xbc], eax
push ecx
push str.CREATE_VIRTUAL_TABLE__T
push ebx
call fcn.00406f50
mov dword [esp + 0x20], eax
add esp, 0xc
mov eax, dword [esp + 0xc]
mov esi, 0xffff8000
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x48fb58
mov ecx, dword [ebx + 0x10]
xor esi, esi
add ecx, 0xc
cmp dword [ecx], edx
je 0x48fb58
nop word [eax + eax]
lea ecx, [ecx + 0x10]
inc esi
cmp dword [ecx], edx
jne 0x48fb50
push dword [edi + 0x58]
mov eax, dword [eax]
mov ecx, esi
push dword [esp + 0x18]
shl ecx, 4
push eax
push eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x28], 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 edi
call fcn.004554f0
mov edi, dword [edi + 8]
add esp, 0x1c
test edi, edi
jne 0x48fba3
mov ecx, dword [esp + 0x10]
cmp dword [ecx + 0x74], edi
jne 0x48fb9c
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x48fb9c
mov byte [ecx + 0x17], 1
call fcn.0042a700
mov edi, eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [ecx + 8]
mov ecx, dword [ecx]
mov dword [esp + 0x1c], edx
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + eax + 0xc]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x74]
inc eax
mov dword [esp + 0x18], eax
cmp dword [edx + 0x78], ecx
jg 0x48fbe1
mov ecx, dword [esp + 0x1c]
mov edx, 0x62
push eax
push 1
push esi
call fcn.0042a9a0
add esp, 0xc
jmp 0x48fc10
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x62
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 0x48fc2f
push 0
push 0
push 0
mov edx, 0xa4
mov ecx, edi
call fcn.0042a9a0
add esp, 0xc
jmp 0x48fc62
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0xa4
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 + 0xc]
push dword [esp + 0x14]
push dword [eax]
push str.name_Q_AND_sql_Q
push ebx
call fcn.00406f50
push 0
push eax
mov edx, esi
mov ecx, edi
call fcn.0042b020
mov eax, dword [esp + 0x2c]
add esp, 0x18
test eax, eax
je 0x48fc97
mov edx, eax
mov ecx, ebx
call fcn.00404680
mov eax, dword [esp + 0x10]
mov ecx, edi
inc dword [eax + 0x2c]
mov ebx, dword [eax + 0x2c]
mov edx, ebx
mov eax, dword [esp + 0xc]
push dword [eax]
call fcn.0042aa50
mov ecx, dword [edi + 0x74]
add esp, 4
cmp dword [edi + 0x78], ecx
jg 0x48fcd5
push 0
push ebx
push esi
mov edx, 0xa9
mov ecx, edi
call fcn.0042a9a0
add esp, 0xc
pop edi
pop esi
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], 0xa9
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 ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x2c], ecx
lea ecx, [ebx + 0x180]
push 0
mov edx, dword [eax]
call fcn.004095f0
add esp, 4
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
test eax, eax
je 0x48fe4f
mov eax, dword [eax]
test eax, eax
je 0x48fe4f
cmp dword [eax], 3
jl 0x48fe4f
cmp dword [eax + 0x5c], 0
je 0x48fe4f
mov edx, dword [esp + 0xc]
mov ebx, dword [edx]
test ebx, ebx
je 0x48fd71
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x48fd62
sub ebx, ecx
and ebx, 0x3fffffff
mov eax, dword [edx + 0x3c]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
je 0x48fe4b
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
cmp byte [eax + 0x2b], 0
jne 0x48fe35
test dword [eax + 0x1c], 0x1000
jne 0x48fe35
mov eax, dword [eax]
mov esi, ebx
mov edx, dword [edx]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x48fdb5
neg edx
sbb edx, edx
jmp 0x48fdfc
test edx, edx
je 0x48fe31
mov edi, eax
test ebx, ebx
je 0x48fde1
nop
mov al, byte [edi]
dec esi
test al, al
je 0x48fde2
movzx ecx, byte [edx]
movzx eax, al
mov al, byte [eax + 0x4e3418]
cmp al, byte [ecx + 0x4e3418]
jne 0x48fde2
inc edi
inc edx
test esi, esi
jg 0x48fdc0
dec esi
test esi, esi
js 0x48fe00
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x4e3418]
movzx eax, byte [edi]
movzx edx, byte [eax + 0x4e3418]
sub edx, ecx
test edx, edx
jne 0x48fe31
mov eax, dword [esp + 0x1c]
cmp byte [eax + ebx], 0x5f
jne 0x48fe31
mov ecx, dword [esp + 0x20]
inc eax
add eax, ebx
push eax
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x5c]
call eax
mov edx, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x48fe35
mov eax, dword [esp + 0x24]
or dword [eax + 0x1c], 0x1000
jmp 0x48fe35
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x48fd83
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push dword [esp + 0xc]
mov edx, dword [esp + 0x30]
add ecx, 8
call fcn.004096b0
add esp, 4
test eax, eax
je 0x48feb4
cmp byte [ebx + 0x53], 0
jne 0x48febe
cmp byte [ebx + 0x54], 0
jne 0x48febe
cmp dword [ebx + 0xc8], 0
mov byte [ebx + 0x53], 1
jle 0x48fe8d
mov dword [ebx + 0x128], 1
inc dword [ebx + 0x130]
xor eax, eax
mov word [ebx + 0x134], ax
mov eax, dword [ebx + 0x10c]
test eax, eax
je 0x48febe
mov dword [eax + 0xc], 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi + 0xe8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret