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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
shl ebx, 4
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
add ebx, dword [ecx + 0x10]
test eax, eax
jne 0x1008feaf
cmp dword [edi + 0x78], eax
jne 0x1008fea3
test byte [ecx + 0x50], 8
jne 0x1008fea3
mov byte [edi + 0x17], 1
push edi
call fcn.100c9120
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x78]
mov esi, edi
test ecx, ecx
mov eax, 1
cmovne esi, ecx
mov ecx, dword [ebp + 0x10]
shl eax, cl
mov edx, dword [esi + 0x58]
test edx, eax
jne 0x1008fee1
bts edx, ecx
mov dword [esi + 0x58], edx
cmp ecx, 1
jne 0x1008fee1
push esi
call fcn.100b4570
mov ecx, dword [ebp + 0x10]
add esp, 4
mov eax, dword [esi + 0x54]
or byte [esi + 0x14], 1
bts eax, ecx
mov dword [esi + 0x54], eax
mov esi, dword [ebp + 0xc]
cmp byte [esi + 0x2b], 1
jne 0x1008ff4b
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x6c]
cmp dword [edx + 0x70], ecx
jg 0x1008ff18
push 0
push 0
push 0
push 0xaa
push edx
call fcn.1006b1b0
add esp, 0x14
jmp 0x1008ff4b
lea eax, [ecx + 1]
mov dword [edx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x68]
mov dword [eax + ecx*4], 0xaa
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
push esi
push edi
call fcn.100c47c0
mov esi, eax
add esp, 8
test esi, esi
je 0x1008ff71
nop dword [eax + eax]
push esi
push edi
call fcn.10095b30
mov esi, dword [esi + 0x20]
add esp, 8
test esi, esi
jne 0x1008ff60
mov esi, dword [ebp + 0xc]
test byte [esi + 0x1c], 8
je 0x1008ff8c
push dword [esi]
push dword [ebx]
push str.DELETE_FROM__Q.sqlite_sequence_WHERE_name_Q
push edi
call fcn.100b3f90
add esp, 0x10
push dword [esi]
push dword [ebx]
push str.DELETE_FROM__Q.sqlite_master_WHERE_tbl_name_Q_and_type_trigger
push edi
call fcn.100b3f90
add esp, 0x10
mov ebx, esi
cmp dword [ebp + 0x14], 0
jne 0x1009001a
cmp byte [ebx + 0x2b], 1
je 0x10090020
mov eax, dword [ebx + 0x14]
xor edx, edx
mov dword [ebp - 8], eax
xor esi, esi
test edx, edx
je 0x1008ffbe
cmp eax, edx
jae 0x1008ffc0
mov esi, eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x1008ffde
mov ecx, dword [eax + 0x2c]
test edx, edx
je 0x1008ffd2
cmp ecx, edx
jae 0x1008ffd7
cmp ecx, esi
cmova esi, ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x1008ffc7
test esi, esi
je 0x1009001a
mov edx, dword [ebx + 0x3c]
mov ecx, 0xffff8000
test edx, edx
je 0x10090008
mov eax, dword [edi]
xor ecx, ecx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x10090008
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x10090000
push ecx
push esi
push edi
call fcn.10031e20
mov eax, dword [ebp - 8]
add esp, 0xc
mov edx, esi
jmp 0x1008ffb4
cmp byte [ebx + 0x2b], 1
jne 0x1009004c
mov esi, dword [ebp + 0x10]
push 0
push dword [ebx]
push 0
push 0
push esi
push 0xac
push dword [ebp - 4]
call fcn.100c8810
mov eax, dword [edi + 0x78]
add esp, 0x1c
test eax, eax
mov ecx, edi
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x1009004f
mov esi, dword [ebp + 0x10]
push 0
push dword [ebx]
push 0
push 0
push esi
push 0x97
push dword [ebp - 4]
call fcn.100c8810
push esi
push edi
call fcn.1008f400
push esi
push dword [ebp - 0xc]
call fcn.100e2160
add esp, 0x2c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret