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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov dword [esp + 0x1c], ebx
mov esi, dword [ebx + 0xf4]
mov eax, dword [ebx]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
test esi, esi
je 0x49854d
call fcn.00498120
mov dword [ebx + 0x104], 0
cmp dword [esi + 0x2c], 1
jl 0x49854d
mov edx, dword [esp + 0x10]
cmp byte [edx + 0xb1], 0
jne 0x498450
mov eax, dword [ebx + 0x78]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
lea ecx, [ebx + 0xc4]
test edi, edi
je 0x49820b
mov eax, dword [edi + 4]
sub eax, dword [ecx]
add eax, dword [edi]
mov dword [ebx + 0xc8], eax
push ecx
push str.CREATE_VIRTUAL_TABLE__T
push edx
call fcn.00416840
mov edx, dword [esi + 0x3c]
add esp, 0xc
mov dword [esp + 0x18], eax
mov edi, 0xffff8000
test edx, edx
je 0x498248
mov ecx, dword [esp + 0x10]
xor edi, edi
mov ecx, dword [ecx + 0x10]
add ecx, 0xc
cmp dword [ecx], edx
je 0x498248
nop word [eax + eax]
lea ecx, [ecx + 0x10]
inc edi
cmp dword [ecx], edx
jne 0x498240
push dword [ebx + 0x5c]
mov eax, dword [esi]
mov ecx, edi
push dword [esp + 0x1c]
shl ecx, 4
push eax
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 0x10]
push dword [eax + ecx]
push str.UPDATE__Q.sqlite_master_SET_typetable__name_Q__tbl_name_Q__rootpage0__sql_Q_WHERE_rowid_d
push ebx
call fcn.0045ff40
mov esi, dword [ebx + 8]
add esp, 0x1c
test esi, esi
je 0x498283
mov edx, esi
mov dword [esp + 0x1c], esi
jmp 0x4982a5
cmp dword [ebx + 0x78], 0
jne 0x498295
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x498295
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.00436f50
mov edx, dword [ebx + 8]
mov esi, eax
mov dword [esp + 0x1c], edx
mov ecx, dword [ebx]
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + eax + 0xc]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x6c]
inc eax
mov dword [esp + 0x20], eax
cmp dword [edx + 0x70], ecx
jg 0x4982d8
mov ecx, dword [esp + 0x1c]
mov edx, 0x64
push eax
push 1
push edi
call fcn.00437140
add esp, 0xc
jmp 0x498307
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x68]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x498326
push 0
push 0
push 0
mov edx, 0xa6
mov ecx, esi
call fcn.00437140
add esp, 0xc
jmp 0x498359
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xa6
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 + 0x14]
push dword [esp + 0x18]
push dword [eax]
push str.name_Q_AND_sql_Q
push dword [esp + 0x1c]
call fcn.00416840
push 0
push eax
mov edx, edi
mov ecx, esi
call fcn.00437610
push dword [esp + 0x30]
push dword [esp + 0x2c]
call fcn.00413560
inc dword [ebx + 0x2c]
add esp, 0x20
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 0x6c]
mov ebx, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x70], edx
jg 0x4983bd
push 0
push ebx
push 0
mov edx, 0x75
mov ecx, esi
call fcn.00437140
add esp, 0xc
mov edx, eax
jmp 0x4983ec
lea eax, [edx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x75
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push dword [esp + 0x20]
mov ecx, esi
call fcn.00437de0
mov ecx, dword [esi + 0x6c]
add esp, 8
cmp dword [esi + 0x70], ecx
jg 0x49841e
push 0
push ebx
push edi
mov edx, 0xab
mov ecx, esi
call fcn.00437140
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0xab
mov dword [eax + ecx*4 + 4], edi
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 eax, dword [esi + 0x3c]
lea ecx, [edx + 0x184]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x30]
push 0
mov edx, dword [eax]
call fcn.00418ee0
add esp, 4
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
test eax, eax
je 0x49851b
mov eax, dword [eax]
test eax, eax
je 0x49851b
cmp dword [eax], 3
jl 0x49851b
cmp dword [eax + 0x5c], 0
je 0x49851b
mov edi, dword [esi]
test edi, edi
je 0x4984b6
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4984a7
sub edi, ecx
and edi, 0x3fffffff
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x498517
mov esi, dword [ebx + 8]
cmp byte [esi + 0x2b], 0
jne 0x49850d
test dword [esi + 0x1c], 0x1000
jne 0x49850d
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
push edi
push dword [ecx]
push eax
call fcn.00417a30
add esp, 0xc
test eax, eax
jne 0x49850d
mov eax, dword [esi]
cmp byte [eax + edi], 0x5f
jne 0x49850d
mov ecx, dword [esp + 0x20]
inc eax
add eax, edi
push eax
mov ecx, dword [ecx]
mov eax, dword [ecx + 0x5c]
call eax
add esp, 4
test eax, eax
je 0x49850d
or dword [esi + 0x1c], 0x1000
mov ebx, dword [ebx]
test ebx, ebx
jne 0x4984c0
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add ecx, 8
push esi
call fcn.00418f90
add esp, 4
test eax, eax
je 0x498543
mov ecx, dword [esp + 0x10]
call fcn.00413c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xf4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret