Function at 0x10074500
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]
mov dword [esp + 0x18], ebp
cmp byte [ebp + 0x57], 0
jne 0x100747cd
call fcn.10092b00
test eax, eax
jne 0x100747cd
lea edi, [ebp + 0x5b]
cmp dword [esp + 0x24], eax
je 0x10074535
inc byte [edi]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
test edx, edx
je 0x10074562
mov eax, dword [esi]
xor ecx, ecx
mov ebx, dword [eax + 0x10]
cmp dword [ebx + 0xc], edx
lea eax, [ebx + 0xc]
je 0x1007455b
nop
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x10074550
lea edi, [ebp + 0x5b]
add ecx, ecx
mov eax, dword [ebx + ecx*8]
jmp 0x10074565
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.1006f460
mov ebx, eax
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10074587
dec byte [edi]
test ebx, ebx
jne 0x100745ba
test eax, eax
je 0x100747cd
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.10077e80
mov ecx, esi
call fcn.100702a0
mov edx, dword [esp + 0x10]
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.10077510
mov ecx, dword [ebx + 0x3c]
mov edi, 0xffff8000
test ecx, ecx
je 0x100745da
mov eax, dword [ebp + 0x10]
xor edi, edi
add eax, 0xc
cmp dword [eax], ecx
je 0x100745da
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x100745d2
cmp byte [ebx + 0x2b], 1
jne 0x100745f1
mov edx, ebx
mov ecx, esi
call fcn.10073af0
test eax, eax
jne 0x100747cd
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.1006e520
add esp, 0xc
test eax, eax
jne 0x100747cd
cmp dword [esp + 0x20], eax
je 0x10074641
xor edx, edx
cmp edi, 1
setne dl
lea edx, [edx*2 + 0xf]
jmp 0x10074675
cmp byte [ebx + 0x2b], 1
jne 0x10074666
mov eax, dword [ebx + 0x34]
mov edx, 0x1e
test eax, eax
je 0x1007465e
cmp dword [eax], ebp
je 0x1007465e
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x10074653
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
jmp 0x10074677
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.1006e520
add esp, 0xc
test eax, eax
jne 0x100747cd
push dword [esp + 0x14]
lea edx, [eax + 9]
mov ecx, esi
push eax
push dword [ebx]
call fcn.1006e520
add esp, 0xc
test eax, eax
jne 0x100747cd
mov edx, ebx
mov ecx, ebp
call fcn.10074390
test eax, eax
je 0x100746db
push dword [ebx]
push str.table__s_may_not_be_dropped
push esi
call fcn.100221b0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.10077510
cmp dword [esp + 0x20], 0
mov al, byte [ebx + 0x2b]
je 0x1007470b
cmp al, 2
je 0x10074731
push dword [ebx]
push str.use_DROP_TABLE_to_delete_table__s
push esi
call fcn.100221b0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.10077510
cmp al, 2
jne 0x10074731
push dword [ebx]
push str.use_DROP_VIEW_to_delete_view__s
push esi
call fcn.100221b0
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.10077510
cmp dword [esi + 8], 0
je 0x1007473c
lea ecx, [esi + 0x78]
jmp 0x1007475c
cmp dword [esi + 0x78], 0
jne 0x1007474e
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x1007474e
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.10043ab0
lea ecx, [esi + 0x78]
test eax, eax
je 0x100747cd
mov eax, dword [ecx]
mov ebp, esi
test eax, eax
mov ecx, edi
cmovne ebp, eax
mov eax, 1
shl eax, cl
mov edx, dword [ebp + 0x58]
test edx, eax
jne 0x10074787
bts edx, edi
mov dword [ebp + 0x58], edx
cmp edi, 1
jne 0x10074787
mov ecx, ebp
call fcn.10077de0
mov eax, dword [ebp + 0x54]
or byte [ebp + 0x14], 1
bts eax, edi
mov dword [ebp + 0x54], eax
mov ebp, dword [esp + 0x20]
test ebp, ebp
jne 0x100747bb
push dword [ebx]
mov edx, edi
mov ecx, esi
push 0x1015a874
call fcn.10073f30
mov edx, dword [esp + 0x18]
mov ecx, esi
push ebx
call fcn.10081aa0
add esp, 0xc
push ebp
push edi
mov edx, ebx
mov ecx, esi
call fcn.10073fc0
mov ebp, dword [esp + 0x20]
add esp, 8
mov edx, dword [esp + 0x10]
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
jmp fcn.10077510