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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [ebp + 0x1c]
and dword [esp + 0x10], 0
and dword [esp + 4], 0
cmp dword [ebp + 0x20], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 8]
push edi
mov dword [esp + 0x28], eax
mov edi, dword [esi]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], edx
je 0x4a19d8
cmp dword [ecx + 4], 0
jbe 0x4a19cd
push str.temporary_trigger_may_not_have_qualified_name
push esi
call fcn.00453b99
pop ecx
pop ecx
jmp 0x4a1b94
xor edx, edx
inc edx
mov ecx, edx
mov dword [esp + 0x14], ecx
jmp 0x4a1a03
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.00487662
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
js 0x4a1b94
mov eax, dword [esp + 0x24]
xor edx, edx
mov dword [esp + 0x20], eax
inc edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4a1b97
cmp byte [edi + 0x57], 0
jne 0x4a1b97
cmp byte [edi + 0xb1], 0
je 0x4a1a37
cmp ecx, edx
je 0x4a1a37
mov edx, dword [eax + 0xc]
test edx, edx
je 0x4a1a33
mov ecx, edi
call fcn.00450d17
mov eax, dword [ebp + 0x18]
and dword [eax + 0xc], 0
mov edx, eax
mov ecx, esi
call fcn.0048cc7d
cmp byte [edi + 0xb1], 0
mov edx, eax
jne 0x4a1a71
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x4a1a71
test edx, edx
je 0x4a1a71
mov ecx, dword [edi + 0x10]
mov eax, dword [edx + 0x3c]
mov edx, dword [esp + 0x14]
push 1
cmp eax, dword [ecx + 0x1c]
pop eax
cmove edx, eax
mov dword [esp + 0x14], edx
jmp 0x4a1a75
mov edx, dword [esp + 0x14]
cmp byte [edi + 0x57], 0
jne 0x4a1b94
push dword [esp + 0x20]
lea ecx, [esp + 0x40]
push str.trigger
push edx
mov edx, esi
call fcn.00486412
mov edx, dword [ebp + 0x18]
add esp, 0xc
call fcn.00486472
test eax, eax
jne 0x4a1b94
mov edx, dword [ebp + 0x18]
mov ecx, esi
call fcn.0048cc7d
mov dword [esp + 0x24], eax
test eax, eax
je 0x4a1acc
cmp byte [eax + 0x2b], 1
jne 0x4a1b03
push str.cannot_create_triggers_on_virtual_tables
push esi
call fcn.00453b99
pop ecx
pop ecx
cmp byte [edi + 0xb0], 1
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
jne 0x4a1ae6
xor eax, eax
inc eax
or dword [edi + 0xb4], eax
and dword [esp + 0x1c], 0
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x18], eax
test edx, edx
je 0x4a1b94
jmp 0x4a1b83
mov edx, dword [esp + 0x20]
mov ecx, edi
call fcn.00487581
mov dword [esp + 0x10], eax
test eax, eax
je 0x4a1b94
mov ecx, dword [esp + 0x24]
mov edx, eax
push dword [ecx]
mov ecx, esi
push str.trigger
call fcn.004876dc
pop ecx
pop ecx
test eax, eax
jne 0x4a1b7f
cmp byte [esi + 0xd4], 2
jae 0x4a1c27
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x10]
add ecx, ecx
mov edx, dword [esp + 0x10]
push 0
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 0x28
call fcn.00455231
pop ecx
cmp dword [eax + 8], 0
je 0x4a1c27
cmp dword [ebp + 0x24], 0
jne 0x4a1c0f
push dword [esp + 0x20]
push str.trigger__T_already_exists
push esi
call fcn.00453b99
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, edi
call fcn.00450d17
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov edx, eax
mov ecx, edi
call fcn.0048b9a3
test ebx, ebx
je 0x4a1be3
xor eax, eax
mov dword [esp + 0x30], eax
cmp dword [ebx], eax
jle 0x4a1bda
lea ecx, [ebx + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [ecx]
test edx, edx
je 0x4a1bca
mov ecx, edi
call fcn.00450d17
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
inc eax
add ecx, 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
cmp eax, dword [ebx]
jl 0x4a1bb5
mov edx, ebx
mov ecx, edi
call fcn.00450d66
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a1bf4
mov edx, eax
mov ecx, edi
call fcn.0047cbeb
cmp dword [esi + 0xf8], 0
jne 0x4a1c08
mov edx, dword [esp + 0x1c]
mov ecx, edi
call fcn.004a296b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x78], 0
mov ecx, esi
mov edx, dword [esp + 0x14]
cmovne ecx, dword [esi + 0x78]
call fcn.0048bec0
jmp 0x4a1b7f
mov eax, dword [esp + 0x24]
push 7
push str.sqlite_
mov eax, dword [eax]
push eax
mov dword [esp + 0x2c], eax
call fcn.00453d10
add esp, 0xc
test eax, eax
jne 0x4a1c57
push str.cannot_create_trigger_on_system_table
push esi
call fcn.00453b99
pop ecx
pop ecx
jmp 0x4a1b7f
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x2b], 2
jne 0x4a1c94
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x41
je 0x4a1cb4
mov eax, dword [ebp + 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 esi
call fcn.00453b99
add esp, 0x10
jmp 0x4a1acc
cmp dword [ebp + 0xc], 0x41
jne 0x4a1cb4
mov eax, dword [ebp + 0x18]
add eax, 8
push eax
push str.cannot_create_INSTEAD_OF_trigger_on_table:__S
push esi
call fcn.00453b99
add esp, 0xc
jmp 0x4a1acc
cmp byte [esi + 0xd4], 2
jae 0x4a1d3c
mov edx, dword [eax + 0x3c]
mov ecx, edi
call fcn.00499367
mov edx, dword [edi + 0x10]
mov ecx, eax
add ecx, ecx
mov dword [esp + 0x38], eax
cmp dword [ebp + 0x20], 0
mov ecx, dword [edx + ecx*8]
mov dword [esp + 0x34], ecx
je 0x4a1ce2
mov ecx, dword [edx + 0x10]
cmp eax, 1
je 0x4a1ced
cmp dword [ebp + 0x20], 0
je 0x4a1cf1
push 5
jmp 0x4a1cf3
push 7
pop edx
push ecx
push dword [esp + 0x24]
mov ecx, esi
push dword [esp + 0x18]
call fcn.00486715
add esp, 0xc
test eax, eax
jne 0x4a1b7f
push dword [esp + 0x34]
cmp dword [esp + 0x3c], 1
mov ecx, str.sqlite_temp_master
push eax
mov eax, str.sqlite_master
cmove eax, ecx
mov ecx, esi
push eax
push 0x12
pop edx
call fcn.00486715
add esp, 0xc
test eax, eax
jne 0x4a1b7f
push 0
push 0x24
mov ecx, edi
call fcn.00450fbe
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4a1b7f
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov ecx, edi
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 0x10]
call fcn.004511f6
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
push 0x21
mov dword [edx + 4], eax
mov ecx, dword [edi + 0x10]
mov eax, dword [esp + 0x18]
add eax, eax
cmp dword [ebp + 0xc], 0x41
mov ecx, dword [ecx + eax*8 + 0xc]
mov eax, dword [esp + 0x28]
mov dword [edx + 0x14], ecx
mov ecx, dword [eax + 0x3c]
pop eax
cmovne eax, dword [ebp + 0xc]
cmp eax, 0x21
mov dword [edx + 0x18], ecx
mov cl, byte [ebp + 0x10]
setne al
mov byte [edx + 8], cl
inc al
mov byte [edx + 9], al
cmp byte [esi + 0xd4], 2
jb 0x4a1dce
mov eax, dword [ebp + 0x18]
mov ecx, esi
mov edx, dword [esp + 0x38]
push dword [eax + 0x10]
call fcn.0048294f
xor eax, eax
pop ecx
mov dword [esp + 0x18], eax
jmp 0x4a1df0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a1deb
push 0
push 1
mov edx, eax
mov ecx, edi
call fcn.0047cd6c
pop ecx
pop ecx
mov dword [esp + 0x28], eax
jmp 0x4a1df0
and dword [esp + 0x28], 0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
xor ebx, ebx
mov dword [esi + 0xf8], eax
jmp 0x4a1b94