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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
mov esi, edx
mov dword [esp + 0x14], ebx
mov edi, dword [ebx + 0xec]
mov eax, dword [ebx]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
test edi, edi
je 0x1009808a
call fcn.10097c50
mov dword [ebx + 0xfc], 0
cmp dword [edi + 0x2c], 1
jl 0x1009808a
mov edx, dword [esp + 0xc]
cmp byte [edx + 0xb1], 0
jne 0x10097f1a
mov eax, dword [ebx + 0x74]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
lea ecx, [ebx + 0xbc]
test esi, esi
je 0x10097d3b
mov eax, dword [esi + 4]
sub eax, dword [ecx]
add eax, dword [esi]
mov dword [ebx + 0xc0], eax
push ecx
push str.CREATE_VIRTUAL_TABLE__T
push edx
call fcn.10011ce0
mov edi, eax
add esp, 0xc
mov eax, dword [esp + 0x10]
mov esi, 0xffff8000
mov dword [esp + 0x1c], edi
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x10097d78
mov ecx, dword [esp + 0xc]
xor esi, esi
mov ecx, dword [ecx + 0x10]
add ecx, 0xc
cmp dword [ecx], edx
je 0x10097d78
lea ecx, [ecx + 0x10]
inc esi
cmp dword [ecx], edx
jne 0x10097d70
push dword [ebx + 0x58]
mov eax, dword [eax]
mov ecx, esi
push edi
push eax
push eax
mov eax, dword [esp + 0x1c]
shl ecx, 4
mov dword [esp + 0x28], 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.1005d610
mov edi, dword [ebx + 8]
add esp, 0x1c
test edi, edi
jne 0x10097dc2
cmp dword [ebx + 0x74], edi
jne 0x10097db9
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x10097db9
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.10033b40
mov edi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [ebx + 8]
mov ecx, dword [ecx]
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 0x10097df6
push edx
push 1
push esi
mov edx, 0x63
mov ecx, ebx
call fcn.10033da0
add esp, 0xc
jmp 0x10097e21
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 0x10097e40
push 0
push 0
push 0
mov edx, 0xa5
mov ecx, edi
call fcn.10033da0
add esp, 0xc
jmp 0x10097e73
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 + 0x10]
mov ebx, dword [esp + 0x1c]
push ebx
push dword [eax]
push str.name_Q_AND_sql_Q
push dword [esp + 0x18]
call fcn.10011ce0
push 0
push eax
mov edx, esi
mov ecx, edi
call fcn.10034430
add esp, 0x18
test ebx, ebx
je 0x10097eaa
mov ecx, dword [esp + 0xc]
mov edx, ebx
call fcn.1000f1f0
mov eax, dword [esp + 0x14]
mov ecx, edi
inc dword [eax + 0x2c]
mov ebx, dword [eax + 0x2c]
mov edx, ebx
mov eax, dword [esp + 0x10]
push dword [eax]
call fcn.10033e50
mov ecx, dword [edi + 0x74]
add esp, 4
cmp dword [edi + 0x78], ecx
jg 0x10097ee8
push 0
push ebx
push esi
mov edx, 0xaa
mov ecx, edi
call fcn.10033da0
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], 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 ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
lea ecx, [edx + 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.100141d0
add esp, 4
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10098055
mov eax, dword [eax]
test eax, eax
je 0x10098055
cmp dword [eax], 3
jl 0x10098055
cmp dword [eax + 0x5c], 0
je 0x10098055
mov ebx, dword [edi]
test ebx, ebx
je 0x10097f80
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10097f71
sub ebx, ecx
and ebx, 0x3fffffff
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10098051
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
cmp byte [eax + 0x2b], 0
jne 0x1009803b
test dword [eax + 0x1c], 0x1000
jne 0x1009803b
mov eax, dword [eax]
mov esi, ebx
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10097fc4
neg edx
sbb edx, edx
jmp 0x1009800c
test edx, edx
je 0x1009803b
mov edi, eax
test ebx, ebx
je 0x10097ff1
nop
mov al, byte [edi]
dec esi
test al, al
je 0x10097ff2
movzx ecx, byte [edx]
movzx eax, al
mov al, byte [eax + 0x1010f158]
cmp al, byte [ecx + 0x1010f158]
jne 0x10097ff2
inc edi
inc edx
test esi, esi
jg 0x10097fd0
dec esi
test esi, esi
js 0x10098010
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x1010f158]
movzx eax, byte [edi]
movzx edx, byte [eax + 0x1010f158]
sub edx, ecx
test edx, edx
jne 0x1009803b
mov eax, dword [esp + 0x1c]
cmp byte [eax + ebx], 0x5f
jne 0x1009803b
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
je 0x1009803b
mov eax, dword [esp + 0x24]
or dword [eax + 0x1c], 0x1000
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10097f92
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add ecx, 8
push edi
call fcn.10014290
add esp, 4
test eax, eax
je 0x10098080
push dword [esp + 0xc]
call fcn.1000f8a0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xec], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret