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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
mov edi, dword [ebp + 8]
shl edi, 4
mov eax, dword [esi]
lea ecx, [esi + 0x78]
mov ebx, dword [esi + 8]
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], eax
add edi, dword [eax + 0x10]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
test ebx, ebx
jne 0x1007409d
cmp dword [ecx], ebx
jne 0x10074089
test byte [eax + 0x50], 8
jne 0x10074089
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.10043c70
lea ecx, [esi + 0x78]
mov dword [esp + 0x18], eax
mov ebx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [ecx]
mov eax, 1
test ecx, ecx
cmovne esi, ecx
mov ecx, dword [ebp + 8]
shl eax, cl
mov edx, dword [esi + 0x58]
test edx, eax
jne 0x100740ca
bts edx, ecx
mov dword [esi + 0x58], edx
cmp ecx, 1
jne 0x100740ca
mov ecx, esi
call fcn.10077e40
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 + 0x14]
cmp byte [esi + 0x2b], 1
jne 0x10074133
mov ecx, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], ecx
jg 0x10074100
push 0
push 0
push 0
mov edx, 0xaa
mov ecx, ebx
call fcn.10043eb0
add esp, 0xc
jmp 0x10074133
lea eax, [ecx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx + 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 ecx, dword [esp + 0x10]
mov edx, esi
call fcn.100a3500
mov esi, eax
test esi, esi
je 0x10074164
mov edi, dword [esp + 0x10]
nop dword [eax + eax]
mov edx, esi
mov ecx, edi
call fcn.100a4e70
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10074150
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
test byte [esi + 0x1c], 8
je 0x10074183
push dword [esi]
push dword [edi]
push str.DELETE_FROM__Q.sqlite_sequence_WHERE_name_Q
push dword [esp + 0x1c]
call fcn.1006f090
add esp, 0x10
push dword [esi]
push dword [edi]
mov edi, dword [esp + 0x18]
push str.DELETE_FROM__Q.sqlite_master_WHERE_tbl_name_Q_and_type_trigger
push edi
call fcn.1006f090
add esp, 0x10
cmp dword [ebp + 0xc], 0
jne 0x1007422a
cmp byte [esi + 0x2b], 1
je 0x10074234
mov ebx, esi
xor edx, edx
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x20], eax
xor esi, esi
test edx, edx
je 0x100741c2
cmp eax, edx
jae 0x100741c4
mov esi, eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x100741e7
nop dword [eax + eax]
mov ecx, dword [eax + 0x2c]
test edx, edx
je 0x100741db
cmp ecx, edx
jae 0x100741e0
cmp ecx, esi
cmova esi, ecx
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x100741d0
test esi, esi
je 0x10074222
mov edx, dword [ebx + 0x3c]
mov ecx, 0xffff8000
test edx, edx
je 0x1007420d
mov eax, dword [edi]
xor ecx, ecx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x1007420d
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x10074205
push ecx
mov edx, esi
mov ecx, edi
call fcn.10073eb0
mov eax, dword [esp + 0x24]
add esp, 4
mov edx, esi
jmp 0x100741b8
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x2b], 1
jne 0x100742d6
mov edx, dword [ebx + 0x6c]
mov esi, dword [esi]
cmp dword [ebx + 0x70], edx
jg 0x10074258
push 0
push 0
push dword [ebp + 8]
mov edx, 0xac
mov ecx, ebx
call fcn.10043eb0
add esp, 0xc
mov edx, eax
jmp 0x1007428e
mov edi, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 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 [ebx]
cmp byte [ecx + 0x57], 0
je 0x100742a3
push esi
xor edx, edx
call fcn.10044b10
add esp, 4
jmp 0x100742c1
test edx, edx
jns 0x100742ab
mov edx, dword [ebx + 0x6c]
dec edx
mov eax, dword [ebx + 0x68]
lea ecx, [edx + edx*4]
push 0
push esi
lea edx, [eax + ecx*4]
mov ecx, ebx
call fcn.10044c00
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, edi
mov esi, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov edx, dword [ebx + 0x6c]
mov esi, dword [esi]
cmp dword [ebx + 0x70], edx
jg 0x100742fa
push 0
push 0
push dword [ebp + 8]
mov edx, 0x97
mov ecx, ebx
call fcn.10043eb0
add esp, 0xc
mov edx, eax
jmp 0x10074330
mov edi, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [ebx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx + 0x68]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x10]
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
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
je 0x10074345
push esi
xor edx, edx
call fcn.10044b10
add esp, 4
jmp 0x10074363
test edx, edx
jns 0x1007434d
mov edx, dword [ebx + 0x6c]
dec edx
mov eax, dword [ebx + 0x68]
lea ecx, [edx + edx*4]
push 0
push esi
lea edx, [eax + ecx*4]
mov ecx, ebx
call fcn.10044c00
add esp, 8
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov esi, dword [edi + 8]
add ecx, ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 0xc]
mov ecx, dword [esi + 0x6c]
mov edx, dword [eax]
inc edx
cmp dword [esi + 0x70], ecx
jg 0x10074396
push edx
push 1
push ebx
mov edx, 0x64
mov ecx, esi
call fcn.10043eb0
add esp, 0xc
jmp 0x100743c1
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 edi, dword [esp + 0x24]
mov ecx, ebx
add ecx, ecx
mov eax, dword [edi + 0x10]
mov esi, dword [eax + ecx*8 + 0xc]
test byte [esi + 0x4e], 2
je 0x10074408
mov esi, dword [esi + 0x10]
test esi, esi
je 0x100743f6
nop dword [eax]
mov edx, dword [esi + 8]
cmp byte [edx + 0x2b], 2
jne 0x100743f0
mov ecx, edi
call fcn.1006fc10
mov esi, dword [esi]
test esi, esi
jne 0x100743e0
mov eax, dword [edi + 0x10]
add ebx, ebx
mov ecx, 0xfffd
mov eax, dword [eax + ebx*8 + 0xc]
and word [eax + 0x4e], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret