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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x1011d004]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
mov ebx, dword [ebp + 0x18]
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x18], ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x40], esi
mov dword [esp + 0x2c], esi
mov esi, dword [eax]
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], ebx
cmp dword [ebp + 0x20], ebx
je 0x1007fa72
cmp dword [ecx + 4], ebx
jbe 0x1007fa67
push str.temporary_trigger_may_not_have_qualified_name
push eax
call fcn.10008be0
add esp, 8
jmp 0x1007fcaa
mov ecx, 1
mov dword [esp + 0x14], ecx
jmp 0x1007fa9d
lea ebx, [esp + 0x18]
push ebx
push ecx
mov ecx, eax
call fcn.10053b00
mov ecx, eax
add esp, 8
mov dword [esp + 0x14], ecx
mov ebx, 0
test ecx, ecx
js 0x1007fcaa
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1007fcaa
cmp byte [esi + 0x53], 0
jne 0x1007fcaa
cmp byte [esi + 0xb1], 0
je 0x1007fada
cmp ecx, 1
je 0x1007fada
mov edx, dword [eax + 0xc]
test edx, edx
je 0x1007fad3
mov ecx, esi
call fcn.10004cc0
mov eax, dword [esp + 0x1c]
mov dword [eax + 0xc], 0
mov ecx, dword [esp + 0xc]
mov edx, eax
call fcn.1005c030
cmp byte [esi + 0xb1], 0
jne 0x1007fb1c
mov ecx, dword [esp + 0x24]
cmp dword [ecx + 4], 0
jne 0x1007fb1c
mov edx, dword [esp + 0x14]
test eax, eax
je 0x1007fb20
mov ecx, dword [esi + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0x18], 1
cmp eax, dword [ecx + 0x1c]
cmove edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
jmp 0x1007fb20
mov edx, dword [esp + 0x14]
cmp byte [esi + 0x53], 0
jne 0x1007fcaa
push dword [esp + 0x20]
lea ecx, [esp + 0x48]
push str.trigger
push edx
mov edx, dword [esp + 0x18]
call fcn.10051820
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x84]
xorps xmm0, xmm0
mov dword [esp + 0xa4], eax
add esp, 0xc
movlpd qword [esp + 0x78], xmm0
lea ecx, [esp + 0x48]
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x90], xmm0
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xbc], xmm0
call fcn.1003d8c0
test eax, eax
jne 0x1007fcaa
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
call fcn.1005c030
mov dword [esp + 0x3c], eax
test eax, eax
je 0x1007fbe4
cmp byte [eax + 0x2b], 1
jne 0x1007fc13
push str.cannot_create_triggers_on_virtual_tables
push dword [esp + 0x10]
call fcn.10008be0
add esp, 8
cmp byte [esi + 0xb0], 1
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], ebx
jne 0x1007fbfc
or dword [esi + 0xb4], 1
mov edx, dword [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x34], ebx
test edx, edx
je 0x1007fcaa
jmp 0x1007fca3
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.100539c0
mov dword [esp + 0x10], eax
test eax, eax
je 0x1007fcaa
mov ecx, dword [esp + 0x3c]
mov edx, eax
push dword [ecx]
mov ecx, dword [esp + 0x10]
push str.trigger
call fcn.10053b90
add esp, 8
test eax, eax
jne 0x1007fc9f
mov edx, dword [esp + 0xc]
cmp byte [edx + 0xcc], 2
jae 0x1007fd48
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
add ecx, ecx
mov edx, dword [esp + 0x10]
push 0
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 0x28
call fcn.1000a490
add esp, 4
cmp dword [eax + 8], 0
je 0x1007fd44
cmp dword [ebp + 0x24], 0
jne 0x1007fd32
push dword [esp + 0x20]
push str.trigger__T_already_exists
push dword [esp + 0x14]
call fcn.10008be0
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.10004cc0
mov edx, dword [esp + 0x1c]
mov ecx, esi
call fcn.10059f40
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], edx
test ecx, ecx
je 0x100800ee
xor edi, edi
mov dword [esp + 0x2c], edx
cmp dword [ecx + 4], edi
lea eax, [ecx + 4]
jle 0x1007fcfe
mov dword [esp + 0x28], ecx
mov ebx, eax
mov dword [esp + 0x2c], edx
mov eax, dword [ecx]
mov edx, dword [eax + edi*8]
test edx, edx
je 0x1007fcf5
mov ecx, esi
call fcn.10004cc0
mov ecx, dword [esp + 0x28]
inc edi
cmp edi, dword [ebx]
jl 0x1007fce1
mov ebx, dword [esp + 0x34]
mov edx, dword [ecx]
test edx, edx
je 0x1007fd0f
mov ecx, esi
call fcn.10004cc0
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x10080092
cmp dword [esi + 0x210], 0
je 0x1008005a
mov edx, ecx
mov ecx, esi
call fcn.10004c70
jmp 0x100800ee
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
call fcn.1005a700
jmp 0x1007fc9f
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov eax, 7
mov ecx, dword [ecx]
mov dword [esp + 0x38], ecx
test ecx, ecx
je 0x1007fdd7
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], str.sqlite_
mov cl, byte [ecx]
dec eax
mov dword [esp + 0x18], eax
test cl, cl
je 0x1007fda0
movzx eax, cl
mov ecx, dword [esp + 0x20]
mov al, byte [eax + 0x10114750]
movzx ecx, byte [ecx]
cmp al, byte [ecx + 0x10114750]
mov eax, dword [esp + 0x18]
jne 0x1007fda0
mov ecx, dword [esp + 0x24]
inc dword [esp + 0x20]
inc ecx
mov dword [esp + 0x24], ecx
test eax, eax
jg 0x1007fd67
dec eax
test eax, eax
js 0x1007fdc4
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
movzx ecx, byte [eax + 0x10114750]
mov eax, dword [esp + 0x24]
movzx eax, byte [eax]
movzx eax, byte [eax + 0x10114750]
sub eax, ecx
jne 0x1007fdd7
push str.cannot_create_trigger_on_system_table
push edx
call fcn.10008be0
add esp, 8
jmp 0x1007fc9f
mov eax, dword [esp + 0x3c]
cmp byte [eax + 0x2b], 2
jne 0x1007fe16
mov ecx, dword [esp + 0x30]
cmp ecx, 0x41
je 0x1007fe38
mov eax, dword [esp + 0x1c]
mov edi, str.AFTER
add eax, 8
cmp ecx, 0x21
push eax
mov eax, str.BEFORE
cmovne eax, edi
push eax
push str.cannot_create__s_trigger_on_view:__S
push edx
call fcn.10008be0
add esp, 0x10
jmp 0x1007fbe4
cmp dword [esp + 0x30], 0x41
jne 0x1007fe38
mov eax, dword [esp + 0x1c]
add eax, 8
push eax
push str.cannot_create_INSTEAD_OF_trigger_on_table:__S
push edx
call fcn.10008be0
add esp, 0xc
jmp 0x1007fbe4
cmp byte [edx + 0xcc], 2
jae 0x1007feed
mov edx, dword [eax + 0x3c]
mov ecx, 0xffff8000
mov dword [esp + 0x24], ecx
test edx, edx
je 0x1007fe71
mov eax, dword [esi + 0x10]
xor ecx, ecx
add eax, 0xc
mov dword [esp + 0x24], ecx
cmp dword [eax], edx
je 0x1007fe71
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x1007fe65
mov dword [esp + 0x24], ecx
mov edx, dword [esi + 0x10]
mov eax, ecx
add eax, eax
cmp dword [ebp + 0x20], 0
mov eax, dword [edx + eax*8]
mov dword [esp + 0x18], eax
je 0x1007fe88
mov eax, dword [edx + 0x10]
cmp ecx, 1
je 0x1007fe93
cmp dword [ebp + 0x20], 0
je 0x1007fe9a
mov edx, 5
jmp 0x1007fe9f
mov edx, 7
mov ecx, dword [esp + 0xc]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x18]
call fcn.10051b80
add esp, 0xc
test eax, eax
jne 0x1007fc9f
push dword [esp + 0x18]
cmp dword [esp + 0x28], 1
mov ecx, str.sqlite_temp_master
push eax
mov eax, str.sqlite_master
mov edx, 0x12
cmove eax, ecx
mov ecx, dword [esp + 0x14]
push eax
call fcn.10051b80
add esp, 0xc
test eax, eax
jne 0x1007fc9f
cmp dword [esp + 0x30], 0x41
mov eax, 0x21
push 0
cmovne eax, dword [esp + 0x34]
mov ecx, esi
push 0x24
mov dword [esp + 0x38], eax
call fcn.10005060
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10080051
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x1007ff69
xor ecx, ecx
jmp 0x1007ffb0
mov ecx, eax
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1007ff70
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, esi
push eax
mov dword [esp + 0x40], eax
call fcn.10005060
mov ecx, eax
add esp, 8
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x1007ffac
push dword [esp + 0x38]
push dword [esp + 0x1c]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x1c]
shl dword [esp + 0x14], 4
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x30], 0x21
mov dword [ebx + 4], ecx
mov eax, dword [esi + 0x10]
mov eax, dword [edi + eax + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x3c]
mov dword [ebx + 0x18], eax
mov al, byte [ebp + 0x10]
mov byte [ebx + 8], al
setne al
inc al
mov byte [ebx + 9], al
mov eax, dword [esp + 0xc]
cmp byte [eax + 0xcc], 2
jb 0x1008000d
push dword [edx + 0x10]
mov edx, ecx
mov ecx, eax
call fcn.1004b5f0
mov eax, dword [esp + 0x44]
add esp, 4
mov dword [esp + 0x2c], 0
jmp 0x1008002d
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1008002b
push 0
push 1
mov edx, eax
mov ecx, esi
call fcn.100427c0
add esp, 8
mov dword [esp + 0x40], eax
jmp 0x1008002d
xor eax, eax
mov edi, dword [esp + 0x28]
mov ecx, esi
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], edi
mov edi, dword [esp + 0xc]
mov dword [edi + 0xf0], ebx
call fcn.10059f40
jmp 0x100800f2
mov dword [esp + 0x34], eax
jmp 0x1007fc9f
cmp ecx, dword [esi + 0x164]
jae 0x10080092
cmp ecx, dword [esi + 0x15c]
jb 0x1008007a
mov eax, dword [esi + 0x158]
mov dword [ecx], eax
mov dword [esi + 0x158], ecx
jmp 0x100800ee
cmp ecx, dword [esi + 0x160]
jb 0x10080092
mov eax, dword [esi + 0x150]
mov dword [ecx], eax
mov dword [esi + 0x150], ecx
jmp 0x100800ee
cmp dword [0x1011d0f8], 0
je 0x100800e4
mov eax, dword [0x1011f3e8]
test eax, eax
je 0x100800ae
push eax
call dword [0x1011d148]
add esp, 4
mov edi, dword [esp + 0x28]
push edi
call dword [0x1011d124]
sub dword [0x1011f200], eax
add esp, 4
dec dword [0x1011f224]
push edi
call dword [0x1011d11c]
mov eax, dword [0x1011f3e8]
add esp, 4
test eax, eax
je 0x100800ee
push eax
call dword [0x1011d150]
jmp 0x100800eb
push ecx
call dword [0x1011d11c]
add esp, 4
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10080103
mov edx, ecx
mov ecx, esi
call fcn.10042580
cmp dword [edi + 0xf0], 0
jne 0x1008015c
test ebx, ebx
je 0x1008015c
cmp byte [ebx + 0xa], 0
jne 0x1008015c
mov edx, dword [ebx + 0x1c]
mov ecx, esi
call fcn.1007f730
mov edx, dword [ebx]
test edx, edx
je 0x1008012d
mov ecx, esi
call fcn.10004cc0
mov edx, dword [ebx + 4]
test edx, edx
je 0x1008013b
mov ecx, esi
call fcn.10004cc0
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x10080149
mov ecx, esi
call fcn.10042580
mov edx, dword [ebx + 0x10]
mov ecx, esi
call fcn.100599d0
mov edx, ebx
mov ecx, esi
call fcn.10004cc0
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10105304
mov esp, ebp
pop ebp
ret