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

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
mov ebp, dword [esi]
cmp byte [ebp + 0x57], 0
jne 0x1006da6c
call fcn.10089a50
test eax, eax
jne 0x1006da6c
mov edi, dword [esp + 0x24]
test edi, edi
je 0x1006d7d1
inc byte [ebp + 0x5b]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
test edx, edx
je 0x1006d7ff
mov eax, dword [esi]
xor ecx, ecx
mov ebx, dword [eax + 0x10]
cmp dword [ebx + 0xc], edx
lea eax, [ebx + 0xc]
je 0x1006d7f8
nop dword [eax + eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x1006d7f0
add ecx, ecx
mov eax, dword [ebx + ecx*8]
jmp 0x1006d802
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x20]
mov ecx, esi
push eax
mov eax, dword [esp + 0x14]
push dword [eax + 0x10]
call fcn.10068d20
add esp, 8
mov ebx, eax
test edi, edi
je 0x1006d821
dec byte [ebp + 0x5b]
test ebx, ebx
jne 0x1006d854
test edi, edi
je 0x1006da6c
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.10070e90
mov ecx, esi
call fcn.10069b40
mov edx, dword [esp + 0x10]
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.100704a0
mov ecx, dword [ebx + 0x3c]
mov edi, 0xffff8000
test ecx, ecx
je 0x1006d878
mov eax, dword [ebp + 0x10]
xor edi, edi
add eax, 0xc
cmp dword [eax], ecx
je 0x1006d878
nop dword [eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x1006d870
cmp byte [ebx + 0x2b], 1
jne 0x1006d88f
mov edx, ebx
mov ecx, esi
call fcn.1006ce00
test eax, eax
jne 0x1006da6c
mov eax, dword [ebp + 0x10]
mov ecx, edi
add ecx, ecx
mov edx, 9
cmp edi, 1
mov eax, dword [eax + ecx*8]
mov ecx, str.sqlite_temp_master
push eax
mov dword [esp + 0x18], eax
mov eax, str.sqlite_master
cmove eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10067f00
add esp, 0xc
test eax, eax
jne 0x1006da6c
cmp dword [esp + 0x20], eax
je 0x1006d8df
xor edx, edx
cmp edi, 1
setne dl
lea edx, [edx*2 + 0xf]
jmp 0x1006d913
cmp byte [ebx + 0x2b], 1
jne 0x1006d904
mov eax, dword [ebx + 0x34]
mov edx, 0x1e
test eax, eax
je 0x1006d8fc
cmp dword [eax], ebp
je 0x1006d8fc
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x1006d8f1
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
jmp 0x1006d915
xor edx, edx
cmp edi, 1
sete dl
lea edx, [edx*2 + 0xb]
xor eax, eax
push dword [esp + 0x14]
mov ecx, esi
push eax
push dword [ebx]
call fcn.10067f00
add esp, 0xc
test eax, eax
jne 0x1006da6c
push dword [esp + 0x14]
lea edx, [eax + 9]
mov ecx, esi
push eax
push dword [ebx]
call fcn.10067f00
add esp, 0xc
test eax, eax
jne 0x1006da6c
mov edx, ebx
mov ecx, ebp
call fcn.1006d630
test eax, eax
je 0x1006d979
push dword [ebx]
push str.table__s_may_not_be_dropped
push esi
call fcn.10020b80
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.100704a0
cmp dword [esp + 0x20], 0
mov al, byte [ebx + 0x2b]
je 0x1006d9a9
cmp al, 2
je 0x1006d9cf
push dword [ebx]
push str.use_DROP_TABLE_to_delete_table__s
push esi
call fcn.10020b80
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.100704a0
cmp al, 2
jne 0x1006d9cf
push dword [ebx]
push str.use_DROP_VIEW_to_delete_view__s
push esi
call fcn.10020b80
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.100704a0
cmp dword [esi + 8], 0
jne 0x1006d9f2
cmp dword [esi + 0x78], 0
jne 0x1006d9e7
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x1006d9e7
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.1003f600
test eax, eax
je 0x1006da6c
mov eax, dword [esi + 0x78]
mov edx, esi
test eax, eax
mov ecx, edi
cmovne edx, eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x18], edx
mov ecx, dword [edx + 0x58]
test ecx, eax
jne 0x1006da26
bts ecx, edi
mov dword [edx + 0x58], ecx
cmp edi, 1
jne 0x1006da26
mov ecx, edx
call fcn.10070df0
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x54]
or byte [edx + 0x14], 1
bts eax, edi
mov dword [edx + 0x54], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1006da5e
push dword [ebx]
mov edx, edi
mov ecx, esi
push 0x10135834
call fcn.1006d240
mov edx, dword [esp + 0x18]
mov ecx, esi
push ebx
call fcn.10079f20
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
push edi
mov edx, ebx
mov ecx, esi
call fcn.1006d2d0
add esp, 8
mov edx, dword [esp + 0x10]
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.100704a0