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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], edx
push esi
push edi
mov dword [esp + 0xc], ebx
cmp dword [ebx + 0x24], 0
mov esi, dword [ebx + 0xfc]
mov edi, dword [ebx]
mov dword [ebx + 0xfc], 0
jne 0x10099ba7
test esi, esi
je 0x10099bf1
cmp dword [esi + 0x14], 0
mov eax, dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0xffff8000
je 0x100997e8
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov ebx, dword [esi + 0x14]
add eax, 0xc
mov dword [esp + 0x10], ecx
cmp dword [eax], ebx
mov ebx, dword [esp + 0xc]
je 0x100997e8
mov ebx, dword [esi + 0x14]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], ebx
jne 0x100997d8
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esi + 0x1c], edx
test edx, edx
je 0x100997fe
nop
mov dword [edx + 4], esi
mov edx, dword [edx + 0x28]
test edx, edx
jne 0x100997f0
mov dword [esp + 0x24], edx
mov ecx, dword [esi]
mov dword [esp + 0x2c], ecx
test ecx, ecx
je 0x1009981f
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10099810
sub ecx, edx
and ecx, 0x3fffffff
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx]
shl eax, 4
cmp dword [esp + 0x10], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], ebx
mov eax, dword [ecx + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + eax]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0x10]
mov ecx, ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ecx + eax + 0xc]
sete byte [esp + 0x58]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x64], eax
xor eax, eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x60], str.trigger
mov ecx, eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x10067ab0
mov dword [esp + 0x40], 0x10067b00
mov dword [esp + 0x44], 0x10001080
mov dword [esp + 0x48], 0
mov dword [esp + 0x50], eax
mov edx, dword [esi + 0x1c]
call fcn.10067c30
test eax, eax
jne 0x10099bab
mov edx, dword [esi + 0xc]
test edx, edx
je 0x100998ca
lea ecx, [esp + 0x38]
call fcn.10052ce0
test eax, eax
jne 0x10099bab
cmp byte [ebx + 0xd8], 2
jb 0x100998e0
mov dword [ebx + 0xfc], esi
xor esi, esi
jmp 0x10099b3c
cmp byte [edi + 0xb1], 0
jne 0x10099b45
mov eax, dword [edi + 0x20]
and eax, 0x10000000
or eax, 0
je 0x10099996
cmp dword [edi + 0x194], 0
jne 0x10099996
cmp dword [edi + 0xc8], 0
jne 0x10099996
cmp dword [edi + 0x180], 0
jle 0x1009992a
cmp dword [edi + 0x198], 0
je 0x10099996
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x10099992
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x1009998b
push 0x5f
push eax
call fcn.10105e40
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x1009998b
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0
mov byte [eax], 0
call fcn.10068990
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x20]
mov byte [eax], 0x5f
test edx, edx
je 0x1009998b
cmp byte [edx + 0x2b], 1
jne 0x1009998b
push dword [esp + 0x1c]
mov ecx, edi
call fcn.1006c010
add esp, 4
test eax, eax
jne 0x10099a64
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x10099931
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x100999c5
cmp dword [ebx + 0x78], eax
jne 0x100999b2
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x100999b2
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.1003f640
mov dword [esp + 0x20], eax
test eax, eax
je 0x10099bab
mov eax, dword [ebx + 0x78]
mov edx, ebx
mov ecx, dword [esp + 0x10]
test eax, eax
mov ebx, dword [esp + 0xc]
cmovne edx, eax
mov dword [esp + 0x28], edx
mov eax, dword [edx + 0x58]
mov dword [esp + 0x1c], eax
mov eax, 1
shl eax, cl
test dword [esp + 0x1c], eax
jne 0x10099a0d
mov eax, dword [esp + 0x1c]
bts eax, ecx
mov dword [edx + 0x58], eax
cmp ecx, 1
jne 0x10099a0d
mov ecx, edx
call fcn.10070e40
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x54]
bts eax, ecx
mov dword [edx + 0x54], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], eax
test eax, eax
je 0x10099a7f
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.1001d1c0
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x10099a85
push dword [esp + 0x1c]
push dword [esp + 0x2c]
push eax
call fcn.10107750
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov byte [ecx + eax], 0
jmp 0x10099a85
push dword [ebx + 0xc]
push dword [esi]
push str.trigger___s__may_not_write_to_shadow_table___s_
push dword [esp + 0x18]
call fcn.10020b80
add esp, 0x10
jmp 0x10099bab
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x14]
push eax
push dword [esi + 4]
mov eax, dword [edi + 0x10]
push dword [esp + 0x20]
push dword [eax + ecx]
push str.INSERT_INTO__Q.sqlite_master_VALUES_trigger__Q__Q_0_CREATE_TRIGGER__q_
push ebx
call fcn.10068870
push dword [esp + 0x24]
push edi
call fcn.1001ce80
mov eax, dword [ebx]
add esp, 0x20
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x28], ecx
mov eax, dword [eax + 0x10]
mov ebx, dword [ecx + 0x6c]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [eax]
inc edx
cmp dword [ecx + 0x70], ebx
jg 0x10099ae5
mov ebx, dword [esp + 0x10]
push edx
push 1
push ebx
mov edx, 0x64
call fcn.1003f820
add esp, 0xc
jmp 0x10099b18
lea eax, [ebx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x10]
mov eax, dword [eax + 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
push 0
push ecx
push dword [esp + 0x20]
push str.typetrigger_AND_name_q
push edi
call fcn.1001fbf0
mov ecx, dword [esp + 0x34]
add esp, 0x10
mov edx, ebx
push eax
call fcn.1003fcf0
add esp, 8
cmp byte [edi + 0xb1], 0
je 0x10099ba7
mov eax, dword [edi + 0x10]
mov ebx, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push esi
mov ecx, dword [eax + ecx + 0xc]
add ecx, 0x28
call fcn.10022320
mov esi, eax
add esp, 4
test esi, esi
je 0x10099b71
mov ecx, edi
call fcn.1001d570
jmp 0x10099bab
mov ecx, dword [ebx + 0x18]
cmp dword [ebx + 0x14], ecx
jne 0x10099bf1
mov edx, dword [ebx + 4]
add ecx, 8
push 0
call fcn.10022270
mov edx, dword [esp + 0x28]
add esp, 4
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x38]
mov dword [ebx + 0x20], eax
mov dword [ecx + 0x38], ebx
mov ecx, edi
call fcn.10098e70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10099bf1
cmp byte [esi + 0xa], 0
jne 0x10099bf1
mov edx, dword [esi + 0x1c]
mov ecx, edi
call fcn.10098e70
push dword [esi]
push edi
call fcn.1001ce80
push dword [esi + 4]
push edi
call fcn.1001ce80
mov edx, dword [esi + 0xc]
add esp, 0x10
test edx, edx
je 0x10099bdd
mov ecx, edi
call fcn.100577f0
mov edx, dword [esi + 0x10]
mov ecx, edi
call fcn.10070050
push esi
push edi
call fcn.1001ce80
add esp, 8
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.10098e70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret