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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [ebp + 0x1c]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x28], eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x24], eax
xor eax, eax
push edi
mov edi, dword [esi]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
cmp dword [ebp + 0x20], eax
je 0x481df7
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jbe 0x481df0
push str.temporary_trigger_may_not_have_qualified_name
push esi
call fcn.00407e20
add esp, 8
xor ebx, ebx
xor eax, eax
jmp 0x481faa
mov ebx, 1
jmp 0x481e1b
lea eax, [esp + 0x20]
mov ecx, esi
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00452710
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x481de7
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x481de7
cmp byte [edi + 0x57], 0
jne 0x481de7
cmp byte [edi + 0xb1], 0
je 0x481e49
cmp ebx, 1
je 0x481e49
push dword [ecx + 0xc]
push edi
call fcn.004045f0
mov ecx, dword [ebp + 0x18]
add esp, 8
mov dword [ecx + 0xc], 0
mov edx, ecx
mov ecx, esi
call fcn.0045be90
cmp byte [edi + 0xb1], 0
mov ecx, eax
mov edx, 1
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
jne 0x481e87
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne 0x481e87
test ecx, ecx
je 0x481e87
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x10]
mov eax, dword [eax + 0x3c]
cmp eax, dword [ecx + 0x1c]
cmove ebx, edx
cmp byte [edi + 0x57], 0
jne 0x481de7
mov ecx, dword [esi]
mov edx, ebx
mov dword [esp + 0x34], esi
xorps xmm0, xmm0
shl edx, 4
cmp ebx, 1
mov dword [esp + 0x20], edx
mov eax, dword [ecx + 0x10]
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
mov eax, dword [edx + eax]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0x10]
lea ecx, [esp + 0x38]
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x94], xmm0
mov eax, dword [edx + eax + 0xc]
sete byte [esp + 0x58]
mov dword [esp + 0x54], eax
lea edx, [esp + 0x68]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], eax
xor eax, eax
mov word [esp + 0x4c], ax
lea eax, [esp + 0x34]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x60], str.trigger
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], 0x4506e0
mov dword [esp + 0x40], 0x450730
mov dword [esp + 0x44], fcn.00403c30
mov dword [esp + 0x48], 0
movlpd qword [esp + 0x9c], xmm0
movlpd qword [esp + 0xa4], xmm0
movlpd qword [esp + 0xac], xmm0
mov dword [esp + 0x88], eax
call fcn.0043bcb0
test eax, eax
jne 0x481de7
mov edx, dword [ebp + 0x18]
mov ecx, esi
call fcn.0045be90
mov dword [esp + 0x24], eax
test eax, eax
je 0x481f94
cmp byte [eax + 0x2b], 1
jne 0x482031
push str.cannot_create_triggers_on_virtual_tables
push esi
call fcn.00407e20
add esp, 8
cmp byte [edi + 0xb0], 1
jne 0x481fa4
or dword [edi + 0xb4], 1
xor ebx, ebx
mov eax, dword [esp + 0xc]
push eax
push edi
call fcn.004045f0
mov edx, dword [ebp + 0x18]
add esp, 8
mov ecx, edi
call fcn.00459e90
mov edx, dword [ebp + 0x14]
mov ecx, edi
call fcn.004599a0
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x481fd7
mov ecx, edi
call fcn.004402a0
cmp dword [esi + 0xf4], 0
jne 0x48202a
test ebx, ebx
je 0x48202a
cmp byte [ebx + 0xa], 0
jne 0x48202a
mov edx, dword [ebx + 0x1c]
mov ecx, edi
call fcn.00481bc0
push dword [ebx]
push edi
call fcn.004045f0
push dword [ebx + 4]
push edi
call fcn.004045f0
mov edx, dword [ebx + 0xc]
add esp, 0x10
test edx, edx
je 0x482016
mov ecx, edi
call fcn.004402a0
mov edx, dword [ebx + 0x10]
mov ecx, edi
call fcn.004599a0
push ebx
push edi
call fcn.004045f0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x481de7
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
test eax, eax
je 0x482088
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.00404910
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x48208e
push dword [esp + 0x18]
push dword [esp + 0x20]
push eax
call fcn.004bbbe0
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x18]
mov byte [ecx + eax], 0
jmp 0x48208e
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, eax
call fcn.00407eb0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4824c9
mov ecx, dword [esp + 0x24]
mov edx, eax
push dword [ecx]
mov ecx, esi
push str.trigger
call fcn.004527a0
add esp, 8
test eax, eax
jne 0x481fa4
cmp byte [esi + 0xd0], 2
jae 0x482141
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
push 0
mov ecx, dword [eax + ecx + 0xc]
add ecx, 0x28
call fcn.00409420
add esp, 4
cmp dword [eax + 8], 0
je 0x482141
cmp dword [ebp + 0x24], 0
jne 0x482109
mov eax, dword [esp + 0x14]
push eax
push str.trigger__T_already_exists
push esi
call fcn.00407e20
add esp, 0xc
jmp 0x481fa4
mov eax, dword [esi + 0x74]
mov edx, esi
test eax, eax
mov ecx, ebx
cmovne edx, eax
shl dword [esp + 0x10], cl
mov eax, dword [edx + 0x54]
test dword [esp + 0x10], eax
jne 0x4824c5
bts eax, ebx
mov dword [edx + 0x54], eax
cmp ebx, 1
jne 0x481fa4
mov ecx, edx
call fcn.0045a820
jmp 0x481fa4
mov eax, dword [esp + 0x24]
mov edx, 7
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x48215e
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
jmp 0x4821c7
mov eax, dword [esp + 0xc]
mov ebx, ecx
mov ecx, str.sqlite_
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov al, byte [ebx]
dec edx
test al, al
je 0x48219b
movzx ecx, byte [ecx]
movzx eax, al
mov al, byte [eax + 0x4e0968]
cmp al, byte [ecx + 0x4e0968]
jne 0x48219b
mov ecx, dword [esp + 0x10]
inc ebx
inc ecx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x482171
dec edx
test edx, edx
js 0x4824b2
movzx eax, byte [ebx]
movzx ecx, byte [eax + 0x4e0968]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
movzx eax, byte [eax + 0x4e0968]
sub ecx, eax
je 0x4824b2
mov eax, dword [esp + 0x24]
cmp byte [eax + 0x2b], 2
jne 0x482200
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x41
je 0x482220
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.00407e20
add esp, 0x10
jmp 0x481f94
cmp dword [ebp + 0xc], 0x41
jne 0x482220
mov eax, dword [ebp + 0x18]
add eax, 8
push eax
push str.cannot_create_INSTEAD_OF_trigger_on_table:__S
push esi
call fcn.00407e20
add esp, 0xc
jmp 0x481f94
cmp byte [esi + 0xd0], 2
jae 0x482324
mov ecx, dword [eax + 0x3c]
mov ebx, 0xffff8000
test ecx, ecx
je 0x48224d
mov eax, dword [edi + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x48224d
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x482245
mov ecx, dword [edi + 0x10]
mov eax, ebx
add eax, eax
mov edx, 7
cmp dword [ebp + 0x20], 0
mov eax, dword [ecx + eax*8]
mov dword [esp + 0x10], eax
je 0x482269
mov eax, dword [ecx + 0x10]
cmp ebx, 1
je 0x482274
cmp dword [ebp + 0x20], 0
je 0x482279
mov edx, 5
push eax
push dword [esp + 0x20]
mov ecx, esi
push dword [esp + 0x20]
call fcn.00450b20
add esp, 0xc
test eax, eax
jne 0x481fa4
mov ecx, dword [esi]
mov edx, dword [ecx + 0x168]
test edx, edx
je 0x482324
cmp byte [ecx + 0xb1], al
jne 0x482324
cmp byte [esi + 0xd0], al
jne 0x482324
push dword [esi + 0xf8]
cmp ebx, 1
mov dword [esp + 0x20], str.sqlite_temp_master
push dword [esp + 0x14]
push eax
mov eax, str.sqlite_master
cmove eax, dword [esp + 0x28]
push eax
push 0x12
push dword [ecx + 0x16c]
call edx
mov ebx, eax
add esp, 0x18
cmp ebx, 1
jne 0x4822fd
push str.not_authorized
push esi
call fcn.00407e20
mov dword [esi + 0xc], 0x17
jmp 0x482319
test ebx, ebx
je 0x482324
cmp ebx, 2
je 0x48231c
push str.authorizer_malfunction
push esi
mov ebx, 1
call fcn.00407e20
mov dword [esi + 0xc], ebx
add esp, 8
test ebx, ebx
jne 0x481fa4
cmp dword [ebp + 0xc], 0x41
mov eax, 0x21
push 0
cmovne eax, dword [ebp + 0xc]
mov ecx, edi
push 0x24
mov dword [esp + 0x38], eax
call fcn.00404910
mov ebx, eax
add esp, 8
mov ecx, ebx
mov dword [esp + 0x14], ecx
test ebx, ebx
je 0x481fa6
mov edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x18]
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 + 0xc], 0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4823ad
mov dword [esp + 0x18], eax
jmp 0x4823f0
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4823b2
sub ecx, edx
push 0
lea eax, [ecx + 1]
mov ecx, edi
push eax
mov dword [esp + 0x24], eax
call fcn.00404910
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x4823ec
push dword [esp + 0x1c]
push dword [esp + 0x14]
push eax
call fcn.004bbbe0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x30], 0x21
mov dword [ebx + 4], eax
mov eax, dword [edi + 0x10]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [ebp + 0x18]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x24]
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
cmp byte [esi + 0xd0], 2
jb 0x482461
mov eax, dword [esi + 0x10c]
mov edx, dword [edx + 0x10]
test eax, eax
je 0x482459
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
cmp dword [eax], edx
je 0x482453
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x482440
xor ecx, ecx
mov dword [esp + 0x2c], ecx
jmp 0x48248f
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
xor ecx, ecx
mov dword [esp + 0x2c], ecx
jmp 0x48248f
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x48247f
push 0
mov edx, ecx
mov ecx, edi
push 1
call fcn.00440470
add esp, 8
mov dword [esp + 0x28], eax
jmp 0x482487
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x10], eax
mov dword [esi + 0xf4], ebx
mov ebx, dword [esp + 0x14]
mov dword [ebp + 0x14], 0
jmp 0x481fa6
push str.cannot_create_trigger_on_system_table
push esi
call fcn.00407e20
add esp, 8
jmp 0x481fa4
mov eax, dword [esp + 0xc]
xor ebx, ebx
jmp 0x481faa