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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x511080]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x28], edx
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], eax
cmp dword [esi + 0x24], 0
mov ebx, dword [esi + 0xf8]
mov edi, dword [esi]
mov dword [esp + 0x10], ebx
mov dword [esi + 0xf8], 0
jne 0x49f2fe
test ebx, ebx
je 0x49f2fe
cmp dword [ebx + 0x14], 0
mov eax, dword [ebx]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], 0xffff8000
je 0x49ef40
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov esi, dword [ebx + 0x14]
add eax, 0xc
mov dword [esp + 0x14], ecx
cmp dword [eax], esi
mov esi, dword [esp + 0xc]
je 0x49ef40
mov esi, dword [ebx + 0x14]
nop
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], esi
jne 0x49ef30
mov esi, dword [esp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x1c], edx
test edx, edx
je 0x49ef55
mov dword [edx + 4], ebx
mov edx, dword [edx + 0x28]
test edx, edx
jne 0x49ef47
mov dword [esp + 0x2c], edx
mov ecx, dword [ebx]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x49ef71
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49ef62
sub ecx, edx
and ecx, 0x3fffffff
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi]
shl eax, 4
cmp dword [esp + 0x14], 1
mov dword [esp + 0x1c], eax
mov ebx, eax
mov dword [esp + 0x38], esi
mov eax, dword [ecx + 0x10]
mov eax, dword [ebx + eax]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x10]
mov ecx, ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [eax + ecx + 0xc]
sete byte [esp + 0x5c]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x68], eax
xor eax, eax
mov word [esp + 0x50], ax
lea eax, [esp + 0x38]
mov dword [esp + 0x64], str.trigger
mov ecx, eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0x46aa60
mov dword [esp + 0x44], 0x46aab0
mov dword [esp + 0x48], fcn.0040b7c0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], eax
mov edx, dword [ebx + 0x1c]
call fcn.0046abe0
test eax, eax
jne 0x49f2fe
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x49f01a
lea ecx, [esp + 0x3c]
call fcn.00454c50
test eax, eax
jne 0x49f2fe
cmp byte [esi + 0xd4], 2
lea eax, [edi + 0xb1]
jb 0x49f03a
mov dword [esi + 0xf8], ebx
xor ebx, ebx
mov dword [esp + 0x10], ebx
jmp 0x49f29b
cmp byte [eax], 0
jne 0x49f2a0
mov eax, dword [edi + 0x20]
and eax, 0x10000000
or eax, 0
je 0x49f0db
cmp dword [edi + 0x194], 0
jne 0x49f0db
cmp dword [edi + 0xc8], 0
jne 0x49f0db
cmp dword [edi + 0x180], 0
jle 0x49f07c
cmp dword [edi + 0x198], 0
je 0x49f0db
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x49f0d7
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x49f0d0
push 0x5f
push ebx
call fcn.004d4490
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x49f0d0
push 0
mov edx, ebx
mov byte [eax], 0
mov ecx, edi
call fcn.0046ba80
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x24]
mov byte [eax], 0x5f
test edx, edx
je 0x49f0d0
cmp byte [edx + 0x2b], 1
jne 0x49f0d0
push ebx
mov ecx, edi
call fcn.0046f4e0
add esp, 4
test eax, eax
jne 0x49f0eb
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x49f083
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 8]
mov dword [esp + 0x24], eax
test eax, eax
je 0x49f10a
lea ecx, [esi + 0x78]
jmp 0x49f132
push dword [esi + 0xc]
mov ebx, dword [esp + 0x14]
push dword [ebx]
push str.trigger___s__may_not_write_to_shadow_table___s_
push dword [esp + 0x18]
call fcn.0041c910
add esp, 0x10
jmp 0x49f2fe
cmp dword [esi + 0x78], 0
jne 0x49f11c
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x49f11c
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.00440600
mov dword [esp + 0x24], eax
lea ecx, [esi + 0x78]
test eax, eax
je 0x49f2fa
mov eax, dword [ecx]
mov edx, esi
mov ecx, dword [esp + 0x14]
test eax, eax
mov ebx, dword [esp + 0x10]
cmovne edx, eax
mov dword [esp + 0x20], edx
mov eax, dword [edx + 0x58]
mov dword [esp + 0xc], eax
mov eax, 1
shl eax, cl
test dword [esp + 0xc], eax
jne 0x49f179
mov eax, dword [esp + 0xc]
bts eax, ecx
mov dword [edx + 0x58], eax
cmp ecx, 1
jne 0x49f179
mov ecx, edx
call fcn.00474900
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x54]
bts eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [edx + 0x54], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x49f1d3
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, edi
call fcn.00419010
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x49f1d9
push dword [esp + 0x20]
push dword [esp + 0x1c]
push eax
call fcn.004d4640
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov byte [ecx + eax], 0
jmp 0x49f1d9
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x1c]
push eax
push dword [ebx + 4]
mov eax, dword [edi + 0x10]
push dword [esp + 0x30]
push dword [eax + ecx]
push str.INSERT_INTO__Q.sqlite_master_VALUES_trigger__Q__Q_0_CREATE_TRIGGER__q_
push esi
call fcn.0046b970
mov edx, dword [esp + 0x24]
add esp, 0x18
test edx, edx
je 0x49f208
mov ecx, edi
call fcn.00418b80
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 8]
mov dword [esp + 0x18], ecx
mov eax, dword [eax + 0x10]
mov esi, dword [ecx + 0x6c]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [eax]
inc edx
cmp dword [ecx + 0x70], esi
jg 0x49f23e
mov esi, dword [esp + 0x14]
push edx
push 1
push esi
mov edx, 0x64
call fcn.00440850
add esp, 0xc
jmp 0x49f271
lea eax, [esi + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4], 0x64
mov dword [eax + ecx*4 + 4], esi
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 + 0x30]
push str.typetrigger_AND_name_q
push edi
call fcn.0041b790
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov edx, esi
push eax
call fcn.00440f10
add esp, 8
lea eax, [edi + 0xb1]
cmp byte [eax], 0
je 0x49f2fa
mov eax, dword [edi + 0x10]
mov esi, ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push ebx
mov dword [esp + 0x1c], esi
mov ecx, dword [eax + ecx + 0xc]
add ecx, 0x28
call fcn.0041e160
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x49f2d0
mov ecx, edi
call fcn.004192e0
jmp 0x49f2fe
mov ecx, dword [esi + 0x18]
cmp dword [esi + 0x14], ecx
jne 0x49f2fe
mov edx, dword [esi + 4]
add ecx, 8
push 0
call fcn.0041e0a0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov esi, dword [eax + 8]
mov eax, dword [esi + 0x38]
mov dword [ecx + 0x20], eax
mov dword [esi + 0x38], ecx
jmp 0x49f2fe
mov ebx, dword [esp + 0x10]
mov edx, ebx
mov ecx, edi
call fcn.0049ff50
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.0049e660
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret