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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
shl eax, 4
push esi
push edi
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov edi, dword [ecx + 0x10]
add edi, eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x1006d31c
cmp dword [ebx + 0x78], eax
jne 0x1006d311
test byte [ecx + 0x50], 8
jne 0x1006d311
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.1003f600
mov dword [esp + 0xc], eax
mov ecx, dword [ebx + 0x78]
mov esi, ebx
test ecx, ecx
mov eax, 1
cmovne esi, ecx
mov ecx, dword [ebp + 8]
shl eax, cl
mov edx, dword [esi + 0x58]
test edx, eax
jne 0x1006d34c
bts edx, ecx
mov dword [esi + 0x58], edx
cmp ecx, 1
jne 0x1006d34c
mov ecx, esi
call fcn.10070df0
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x54]
or byte [esi + 0x14], 1
bts eax, ecx
mov dword [esi + 0x54], eax
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x2b], 1
jne 0x1006d3bb
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0x6c]
cmp dword [edx + 0x70], ecx
jg 0x1006d388
mov ecx, dword [esp + 0xc]
mov edx, 0xaa
push 0
push 0
push 0
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006d3bb
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
mov edx, esi
mov ecx, ebx
call fcn.10098f70
mov esi, eax
test esi, esi
je 0x1006d3e0
nop word [eax + eax]
mov edx, esi
mov ecx, ebx
call fcn.1009a0b0
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x1006d3d0
mov esi, dword [esp + 0x10]
test byte [esi + 0x1c], 8
je 0x1006d3fc
push dword [esi]
push dword [edi]
push str.DELETE_FROM__Q.sqlite_sequence_WHERE_name_Q
push ebx
call fcn.10068830
add esp, 0x10
push dword [esi]
push dword [edi]
push str.DELETE_FROM__Q.sqlite_master_WHERE_tbl_name_Q_and_type_trigger
push ebx
call fcn.10068830
add esp, 0x10
mov edi, esi
cmp dword [ebp + 0xc], 0
jne 0x1006d48d
cmp byte [edi + 0x2b], 1
je 0x1006d493
mov eax, dword [edi + 0x14]
xor edx, edx
mov dword [esp + 0x18], eax
xor esi, esi
test edx, edx
je 0x1006d42f
cmp eax, edx
jae 0x1006d431
mov esi, eax
mov eax, dword [edi + 8]
test eax, eax
je 0x1006d44f
mov ecx, dword [eax + 0x2c]
test edx, edx
je 0x1006d443
cmp ecx, edx
jae 0x1006d448
cmp ecx, esi
cmova esi, ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x1006d438
test esi, esi
je 0x1006d48d
mov edx, dword [edi + 0x3c]
mov ecx, 0xffff8000
test edx, edx
je 0x1006d478
mov eax, dword [ebx]
xor ecx, ecx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x1006d478
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x1006d470
push ecx
mov edx, esi
mov ecx, ebx
call fcn.1006d140
mov eax, dword [esp + 0x1c]
add esp, 4
mov edx, esi
jmp 0x1006d425
cmp byte [edi + 0x2b], 1
jne 0x1006d510
mov ecx, dword [esp + 0xc]
mov esi, dword [edi]
mov edx, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], edx
jg 0x1006d4b9
push 0
push 0
push dword [ebp + 8]
mov edx, 0xac
call fcn.1003f7e0
add esp, 0xc
mov edx, eax
jmp 0x1006d4f3
mov edi, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xac
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0xc]
push 0
push esi
call fcn.10040430
mov eax, dword [ebx + 0x78]
add esp, 8
test eax, eax
mov ecx, ebx
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov esi, dword [edi]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x6c]
cmp dword [edi + 0x70], edx
jg 0x1006d538
push 0
push 0
push dword [ebp + 8]
mov edx, 0x97
mov ecx, edi
call fcn.1003f7e0
add esp, 0xc
mov edx, eax
jmp 0x1006d56e
lea eax, [edx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [ebp + 8]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0xc]
mov dword [eax + ecx*4], 0x97
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push esi
mov ecx, edi
call fcn.10040430
mov eax, dword [ebx]
add esp, 8
mov edi, dword [esp + 0x1c]
mov esi, dword [ebx + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0x6c]
mov eax, dword [eax + edi + 0xc]
mov edx, dword [eax]
inc edx
cmp dword [esi + 0x70], ecx
jg 0x1006d5ad
push edx
push 1
push dword [ebp + 8]
mov edx, 0x64
mov ecx, esi
call fcn.1003f7e0
add esp, 0xc
jmp 0x1006d5db
mov ebx, dword [ebp + 8]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x68]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x10]
mov esi, dword [edi + eax + 0xc]
test byte [esi + 0x4e], 2
je 0x1006d61b
mov esi, dword [esi + 0x10]
test esi, esi
je 0x1006d60e
mov edx, dword [esi + 8]
cmp byte [edx + 0x2b], 2
jne 0x1006d605
call fcn.10069320
mov ecx, dword [esp + 0x14]
mov esi, dword [esi]
test esi, esi
jne 0x1006d5f3
mov eax, dword [ecx + 0x10]
mov eax, dword [edi + eax + 0xc]
mov ecx, 0xfffd
and word [eax + 0x4e], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret