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

Disassembly:
sub esp, 0x2c
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x40], 0
mov ebx, dword [esi + 0x1e4]
push edi
mov edi, dword [esi]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
mov dword [esi + 0x1e4], 0
jne 0x4e0f7a
test ebx, ebx
je 0x4e0f7a
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx]
push ebp
mov dword [esp + 0x18], eax
mov ebp, 0xfff0bdc0
test edx, edx
je 0x4e0d32
mov ecx, dword [edi + 4]
xor ebp, ebp
test ecx, ecx
jle 0x4e0d32
mov eax, dword [edi + 8]
add eax, 0xc
cmp dword [eax], edx
je 0x4e0d32
inc ebp
add eax, 0x10
cmp ebp, ecx
jl 0x4e0d26
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x1c], eax
test eax, eax
je 0x4e0d52
jmp 0x4e0d44
mov eax, dword [esp + 0x40]
mov dword [eax + 8], ebx
mov eax, dword [eax + 0x24]
mov dword [esp + 0x40], eax
test eax, eax
jne 0x4e0d40
mov ecx, dword [ebx]
mov dword [esp + 0x24], ecx
mov eax, ecx
test ecx, ecx
je 0x4e0d70
cmp byte [ecx], 0
je 0x4e0d69
inc eax
cmp byte [eax], 0
jne 0x4e0d63
sub eax, ecx
and eax, 0x3fffffff
mov dword [esp + 0x28], eax
test ebp, ebp
jl 0x4e0dbb
cmp ebp, 1
je 0x4e0dbb
mov ecx, dword [esi]
mov dword [esp + 0x2c], esi
mov eax, dword [ecx + 8]
mov edx, ebp
shl edx, 4
mov ecx, dword [edx + eax]
lea edx, [esp + 0x24]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], str.trigger
mov dword [esp + 0x38], edx
mov eax, dword [ebx + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004c3840
add esp, 8
test eax, eax
jne 0x4e0f79
cmp byte [edi + 0x78], 0
jne 0x4e0f1a
mov edi, esi
call fcn.004c6150
mov dword [esp + 0x20], eax
test eax, eax
je 0x4e0f75
mov ebx, ebp
call fcn.004dffe0
mov eax, dword [esp + 0x44]
mov ecx, ebp
mov edx, 1
shl edx, cl
or dword [esi + 0x150], edx
mov edi, dword [eax + 4]
mov ebx, dword [eax]
mov edx, dword [esp + 0x10]
call fcn.004b9c30
mov edi, eax
mov eax, str.sqlite_temp_master
cmp ebp, 1
je 0x4e0e11
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x18]
push edi
push edx
push ecx
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
mov edx, ebp
shl edx, 4
mov edx, dword [edx + ecx]
push edx
push str.INSERT_INTO__Q._s_VALUES_trigger__Q__Q_0_CREATE_TRIGGER__q_
mov ebx, esi
call fcn.004c3b00
mov eax, dword [esp + 0x28]
push edi
push eax
call fcn.004af0e0
push ebp
call fcn.004be110
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
push ecx
push str.typetrigger_AND_name_q
call fcn.004c0f30
mov esi, dword [esp + 0x4c]
mov ebx, dword [esi + 0xc]
add esp, 0x2c
cmp dword [esi + 0x10], ebx
mov dword [esp + 0x1c], eax
jg 0x4e0e87
mov edi, esi
call fcn.004bc100
test eax, eax
je 0x4e0e87
mov ebx, 1
xor edx, edx
jmp 0x4e0eae
mov eax, dword [esi + 0x14]
inc dword [esi + 0xc]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
xor edx, edx
mov byte [eax], 0x1f
mov byte [eax + 3], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov byte [esi + 0x6e], dl
mov ecx, dword [esi + 0x14]
mov edi, dword [esi]
mov eax, ebx
cmp ecx, edx
je 0x4e0f00
cmp byte [edi + 0x1e], 0
jne 0x4e0f00
cmp ebx, edx
jge 0x4e0ec7
mov eax, dword [esi + 0xc]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.004bc5c0
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esi + 0x10], ecx
cmp eax, ecx
jne 0x4e0ef7
mov dword [esi + 0x10], ecx
mov byte [esi + 1], cl
jmp 0x4e0f14
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
jmp 0x4e0f14
mov ecx, dword [esp + 0x1c]
or eax, 0xffffffff
call fcn.004bc5c0
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp byte [edi + 0x78], 0
je 0x4e0f79
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x18]
shl ebp, 4
mov ebp, dword [eax + ebp + 0xc]
push ebx
add ebp, 0x24
call fcn.004af2b0
push ecx
mov ecx, ebp
call fcn.004ba0e0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
je 0x4e0f4e
mov byte [edi + 0x1e], 1
mov ebx, dword [esp + 0x14]
jmp 0x4e0f79
mov edx, dword [ebx + 0x18]
cmp dword [ebx + 0x14], edx
jne 0x4e0f48
mov ecx, dword [ebx + 4]
call fcn.004af2b0
lea esi, [edx + 4]
mov edi, ecx
call fcn.004afea0
mov ecx, dword [eax + 0x44]
mov dword [ebx + 0x20], ecx
mov dword [eax + 0x44], ebx
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
pop ebp
mov eax, edi
call fcn.004beca0
mov edx, dword [esp + 0x3c]
push edx
mov eax, edi
call fcn.004beb90
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x2c
ret