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

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [esi + 0xf0]
mov ebx, dword [esi]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
test edi, edi
je 0x10147d19
push esi
call fcn.100d8b10
add esp, 4
mov dword [esi + 0x100], 0
cmp dword [edi + 0x2c], 1
jl 0x10147d19
cmp byte [ebx + 0xb1], 0
push ebp
jne 0x10147ba7
mov eax, dword [esi + 0x78]
lea edx, [esi + 0xc0]
test eax, eax
mov ecx, esi
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x10147ab6
mov eax, dword [ecx + 4]
sub eax, dword [edx]
add eax, dword [ecx]
mov dword [esi + 0xc4], eax
push edx
push str.CREATE_VIRTUAL_TABLE__T
push ebx
call fcn.10124b40
mov edx, dword [edi + 0x3c]
add esp, 0xc
mov ebp, eax
mov edi, 0xffff8000
test edx, edx
je 0x10147ae8
mov ecx, dword [ebx + 0x10]
xor edi, edi
add ecx, 0xc
cmp dword [ecx], edx
je 0x10147ae8
nop
lea ecx, [ecx + 0x10]
inc edi
cmp dword [ecx], edx
jne 0x10147ae0
push dword [esi + 0x5c]
mov eax, dword [esp + 0x18]
mov ecx, edi
push ebp
add ecx, ecx
mov eax, dword [eax]
push eax
push eax
mov eax, dword [ebx + 0x10]
push dword [eax + ecx*8]
push str.UPDATE__Q.sqlite_master_SET_typetable__name_Q__tbl_name_Q__rootpage0__sql_Q_WHERE_rowid_d
push esi
call fcn.10125310
mov ebx, dword [esi + 8]
add esp, 0x1c
test ebx, ebx
jne 0x10147b2f
cmp dword [esi + 0x78], ebx
jne 0x10147b24
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x10147b24
mov byte [esi + 0x17], 1
push esi
call fcn.1013a130
add esp, 4
mov ebx, eax
push edi
push esi
call fcn.1010e6a0
push 0xa6
push ebx
call fcn.10139a50
mov eax, dword [esp + 0x24]
push ebp
push dword [eax]
push str.name_Q_AND_sql_Q
push dword [esp + 0x34]
call fcn.10124b40
push 0
push eax
push edi
push ebx
call fcn.10139d80
add esp, 0x30
test ebp, ebp
je 0x10147b74
push ebp
push dword [esp + 0x1c]
call fcn.10112cf0
add esp, 8
mov eax, dword [esp + 0x14]
inc dword [esi + 0x2c]
mov esi, dword [esi + 0x2c]
push 0
push dword [eax]
push 0
push esi
push 0
push 0x75
push ebx
call fcn.10139bc0
push esi
push edi
push 0xab
push ebx
call fcn.10139b00
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x30]
push 0
push dword [eax]
lea eax, [ebx + 0x184]
push eax
call fcn.100eacf0
add esp, 0xc
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x10147ce4
mov eax, dword [eax]
test eax, eax
je 0x10147ce4
cmp dword [eax], 3
jl 0x10147ce4
cmp dword [eax + 0x5c], 0
je 0x10147ce4
mov ebx, dword [edi]
test ebx, ebx
je 0x10147c0f
lea ecx, [ebx + 1]
nop
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10147c00
sub ebx, ecx
and ebx, 0x3fffffff
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10147ce0
mov ebp, dword [eax + 8]
cmp byte [ebp + 0x2b], 0
jne 0x10147cca
test dword [ebp + 0x1c], 0x1000
jne 0x10147cca
mov ecx, dword [ebp]
mov esi, ebx
mov edx, dword [edi]
test ecx, ecx
jne 0x10147c4c
neg edx
sbb edx, edx
jmp 0x10147c96
test edx, edx
je 0x10147cca
mov edi, ecx
test ebx, ebx
je 0x10147c77
mov al, byte [edi]
dec esi
test al, al
je 0x10147c78
movzx ecx, byte [edx]
movzx eax, al
mov al, byte [eax + 0x1018ff38]
cmp al, byte [ecx + 0x1018ff38]
jne 0x10147c78
inc edi
inc edx
test esi, esi
jg 0x10147c56
dec esi
test esi, esi
js 0x10147c9a
movzx eax, byte [edx]
movzx ecx, byte [eax + 0x1018ff38]
movzx eax, byte [edi]
movzx edx, byte [eax + 0x1018ff38]
mov eax, dword [esp + 0x10]
sub edx, ecx
test edx, edx
jne 0x10147cca
mov eax, dword [ebp]
cmp byte [eax + ebx], 0x5f
jne 0x10147cc6
mov ecx, dword [esp + 0x1c]
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 + 0x10]
je 0x10147cca
or dword [ebp + 0x1c], 0x1000
jmp 0x10147cca
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10147c21
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push edi
push dword [esp + 0x24]
add eax, 8
push eax
call fcn.10120df0
add esp, 0xc
test eax, eax
je 0x10147d0e
push ebx
call fcn.10125540
add esp, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov dword [esi + 0xf0], 0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret