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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x511080]
xor eax, esp
mov dword [esp + 0xc0], eax
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], esi
mov esi, dword [ebx]
push edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], 0
je 0x49e87a
cmp dword [ecx + 4], 0
jbe 0x49e86f
push str.temporary_trigger_may_not_have_qualified_name
push ebx
call fcn.0041c910
add esp, 8
jmp 0x49eaea
mov edi, 1
mov dword [esp + 0x34], edi
jmp 0x49e8a0
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.0046c9f0
mov edi, eax
add esp, 8
mov dword [esp + 0x34], edi
test edi, edi
js 0x49eaea
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49eaea
cmp byte [esi + 0x57], 0
jne 0x49eaea
cmp byte [esi + 0xb1], 0
je 0x49e8dd
cmp edi, 1
je 0x49e8dd
mov edx, dword [eax + 0xc]
test edx, edx
je 0x49e8d6
mov ecx, esi
call fcn.00418b80
mov eax, dword [esp + 0x18]
mov dword [eax + 0xc], 0
mov edx, eax
mov ecx, ebx
call fcn.00475f30
cmp byte [esi + 0xb1], 0
mov edx, 1
mov dword [esp + 0x14], edx
jne 0x49e916
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 4], 0
jne 0x49e916
test eax, eax
je 0x49e916
mov ecx, dword [esi + 0x10]
mov eax, dword [eax + 0x3c]
cmp eax, dword [ecx + 0x1c]
cmove edi, edx
mov dword [esp + 0x34], edi
cmp byte [esi + 0x57], 0
jne 0x49eaea
mov ecx, dword [ebx]
mov edx, edi
mov dword [esp + 0x98], ebx
xorps xmm0, xmm0
shl edx, 4
cmp edi, 1
mov dword [esp + 0x30], edx
mov eax, dword [ecx + 0x10]
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov eax, dword [edx + eax]
mov dword [esp + 0xc0], eax
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x9c]
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
mov eax, dword [eax + edx + 0xc]
sete byte [esp + 0xbc]
mov dword [esp + 0xb8], eax
lea edx, [esp + 0x48]
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc8], eax
xor eax, eax
mov word [esp + 0xb0], ax
lea eax, [esp + 0x98]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc4], str.trigger
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], 0x46aa60
mov dword [esp + 0xa4], 0x46aab0
mov dword [esp + 0xa8], fcn.0040b7c0
mov dword [esp + 0xac], 0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
mov dword [esp + 0x68], eax
call fcn.00454d40
test eax, eax
jne 0x49eaea
mov edx, dword [esp + 0x18]
mov ecx, ebx
call fcn.00475f30
mov dword [esp + 0x2c], eax
test eax, eax
je 0x49ea3f
cmp byte [eax + 0x2b], 1
jne 0x49ea60
push str.cannot_create_triggers_on_virtual_tables
push ebx
call fcn.0041c910
add esp, 8
cmp byte [esi + 0xb0], 1
jne 0x49ea4f
or dword [esi + 0xb4], 1
mov edx, dword [esp + 0x10]
test edx, edx
je 0x49eaea
jmp 0x49eae3
mov edx, dword [esp + 0x28]
mov ecx, esi
call fcn.0046c890
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x49eaea
mov eax, dword [esp + 0x2c]
mov edx, ecx
mov ecx, ebx
push dword [eax]
push str.trigger
call fcn.0046cb40
add esp, 8
test eax, eax
jne 0x49eadf
cmp byte [ebx + 0xd4], 2
jae 0x49eb9e
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
push 0
mov ecx, dword [eax + ecx + 0xc]
add ecx, 0x28
call fcn.0041e0a0
add esp, 4
cmp dword [eax + 8], 0
je 0x49eb9e
cmp dword [ebp + 0x24], 0
jne 0x49eb66
push dword [esp + 0x28]
push str.trigger__T_already_exists
push ebx
call fcn.0041c910
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00418b80
mov edx, dword [esp + 0x18]
mov ecx, esi
call fcn.00473f40
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x49eb2c
xor edi, edi
cmp dword [eax], edi
jle 0x49eb23
lea ebx, [eax + 8]
mov edx, dword [ebx]
test edx, edx
je 0x49eb17
mov ecx, esi
call fcn.00418b80
mov eax, dword [esp + 0x3c]
inc edi
add ebx, 8
cmp edi, dword [eax]
jl 0x49eb06
mov ebx, dword [esp + 0x44]
mov edx, eax
mov ecx, esi
call fcn.00418c30
mov eax, dword [esp + 0x40]
test eax, eax
je 0x49eb3d
mov edx, eax
mov ecx, esi
call fcn.00459770
cmp dword [ebx + 0xf8], 0
jne 0x49eb51
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.0049ff50
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x78]
mov edx, ebx
test eax, eax
mov ecx, edi
cmovne edx, eax
shl dword [esp + 0x14], cl
mov eax, dword [edx + 0x58]
test dword [esp + 0x14], eax
jne 0x49eadf
bts eax, edi
mov dword [edx + 0x58], eax
cmp edi, 1
jne 0x49eadf
mov ecx, edx
call fcn.00474900
jmp 0x49eadf
mov eax, dword [esp + 0x2c]
mov edx, 7
mov edi, dword [eax]
test edi, edi
je 0x49ec16
mov eax, str.sqlite_
mov dword [esp + 0x14], eax
mov cl, byte [edi]
dec edx
mov byte [esp + 0x1f], cl
test cl, cl
je 0x49ebe7
movzx ecx, byte [eax]
movzx eax, byte [esp + 0x1f]
movzx eax, byte [eax + 0x501178]
cmp al, byte [ecx + 0x501178]
mov eax, dword [esp + 0x14]
jne 0x49ebe7
inc eax
inc edi
mov dword [esp + 0x14], eax
test edx, edx
jg 0x49ebb6
dec edx
test edx, edx
js 0x49ec03
movzx eax, byte [eax]
movzx ecx, byte [eax + 0x501178]
movzx eax, byte [edi]
movzx eax, byte [eax + 0x501178]
sub eax, ecx
jne 0x49ec16
push str.cannot_create_trigger_on_system_table
push ebx
call fcn.0041c910
add esp, 8
jmp 0x49eadf
mov edx, dword [esp + 0x2c]
cmp byte [edx + 0x2b], 2
jne 0x49ec55
mov ecx, dword [esp + 0x24]
cmp ecx, 0x41
je 0x49ec77
mov eax, dword [esp + 0x18]
mov edx, str.AFTER
add eax, 8
cmp ecx, 0x21
push eax
mov eax, str.BEFORE
cmovne eax, edx
push eax
push str.cannot_create__s_trigger_on_view:__S
push ebx
call fcn.0041c910
add esp, 0x10
jmp 0x49ea3f
cmp dword [esp + 0x24], 0x41
jne 0x49ec77
mov eax, dword [esp + 0x18]
add eax, 8
push eax
push str.cannot_create_INSTEAD_OF_trigger_on_table:__S
push ebx
call fcn.0041c910
add esp, 0xc
jmp 0x49ea3f
cmp byte [ebx + 0xd4], 2
jae 0x49ed1e
mov ecx, dword [edx + 0x3c]
mov edi, 0xffff8000
test ecx, ecx
je 0x49eca8
mov eax, dword [esi + 0x10]
xor edi, edi
add eax, 0xc
cmp dword [eax], ecx
je 0x49eca8
nop dword [eax]
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x49eca0
mov ecx, dword [esi + 0x10]
mov eax, edi
add eax, eax
cmp dword [ebp + 0x20], 0
mov eax, dword [ecx + eax*8]
mov dword [esp + 0x30], eax
je 0x49ecbf
mov eax, dword [ecx + 0x10]
cmp edi, 1
je 0x49ecca
cmp dword [ebp + 0x20], 0
je 0x49ecd1
mov ecx, 5
jmp 0x49ecd6
mov ecx, 7
push eax
push dword [edx]
mov edx, ecx
mov ecx, ebx
push dword [esp + 0x18]
call fcn.0046aec0
add esp, 0xc
test eax, eax
jne 0x49eadf
push dword [esp + 0x30]
mov ecx, str.sqlite_temp_master
cmp edi, 1
push eax
mov eax, str.sqlite_master
mov edx, 0x12
cmove eax, ecx
mov ecx, ebx
push eax
call fcn.0046aec0
add esp, 0xc
test eax, eax
jne 0x49eadf
cmp dword [esp + 0x24], 0x41
mov eax, 0x21
push 0
cmovne eax, dword [esp + 0x28]
mov ecx, esi
push 0x24
mov dword [esp + 0x30], eax
call fcn.00419010
mov edi, eax
add esp, 8
mov dword [esp + 0x20], edi
test edi, edi
je 0x49eea6
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x49eda0
mov dword [esp + 0x24], eax
jmp 0x49ede3
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49eda5
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, esi
push eax
mov dword [esp + 0x38], eax
call fcn.00419010
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x49eddf
push dword [esp + 0x30]
push dword [esp + 0x18]
push eax
call fcn.004d4640
mov eax, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov dword [edi + 4], eax
add ecx, ecx
mov eax, dword [esi + 0x10]
cmp dword [esp + 0x28], 0x21
mov eax, dword [eax + ecx*8 + 0xc]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x3c]
mov dword [edi + 0x18], eax
mov al, byte [ebp + 0x10]
mov byte [edi + 8], al
setne al
inc al
mov byte [edi + 9], al
cmp byte [ebx + 0xd4], 2
jb 0x49ee54
mov eax, dword [ebx + 0x110]
mov ecx, dword [edx + 0x10]
test eax, eax
je 0x49ee4c
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x44]
cmp dword [eax], ecx
je 0x49ee46
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x49ee35
mov dword [esp + 0x40], eax
jmp 0x49ee86
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
xor eax, eax
mov dword [esp + 0x40], eax
jmp 0x49ee86
mov eax, dword [esp + 0x40]
test eax, eax
je 0x49ee72
push 0
push 1
mov edx, eax
mov ecx, esi
call fcn.00459a00
add esp, 8
mov dword [esp + 0x38], eax
jmp 0x49ee7a
mov dword [esp + 0x38], 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
mov ecx, esi
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x10], eax
mov dword [ebx + 0xf8], edi
call fcn.00473f40
jmp 0x49eb2c
mov dword [esp + 0x20], edi
jmp 0x49eadf