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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x559940]
xor eax, esp
mov dword [esp + 0x50], eax
cmp dword [ecx + 0x24], 0
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0x1b4]
push edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], esi
mov dword [ecx + 0x1b4], 0
jne 0x4803b1
test eax, eax
je 0x4803b1
mov ecx, dword [eax]
mov ebx, 0xfff0bdc0
mov edi, dword [eax + 0x14]
mov dword [esp + 0x28], ecx
lea ecx, [eax + 0x14]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], ebx
test edi, edi
je 0x47fff6
mov ecx, dword [esi + 0x14]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
test ecx, ecx
jle 0x47fff6
mov eax, dword [esi + 0x10]
add eax, 0xc
cmp dword [eax], edi
je 0x47ffee
inc ebx
add eax, 0x10
cmp ebx, ecx
jl 0x47ffe2
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
mov dword [eax + 0x1c], edx
test edx, edx
je 0x48000e
nop dword [eax]
mov dword [edx + 4], eax
mov edx, dword [edx + 0x1c]
test edx, edx
jne 0x480000
mov dword [esp + 0x30], edx
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
test ecx, ecx
je 0x48002f
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x480020
sub ecx, edx
and ecx, 0x3fffffff
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x58], ecx
mov ecx, ebx
shl ecx, 4
mov eax, dword [eax]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x4c], str.trigger
add ecx, dword [eax + 0x10]
mov eax, dword [ecx]
mov dword [esp + 0x48], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x50], eax
xor eax, eax
cmp ebx, 1
sete al
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 0x1c]
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x4800ee
mov edx, dword [ebx + 8]
lea ecx, [esp + 0x3c]
call fcn.0044ed80
test eax, eax
jne 0x4803ad
mov edx, dword [ebx + 0x10]
lea ecx, [esp + 0x3c]
call fcn.0044eec0
test eax, eax
jne 0x4803ad
mov ebx, dword [ebx + 0x14]
test ebx, ebx
je 0x4800db
xor esi, esi
lea edi, [ebx + 4]
cmp dword [ebx], esi
jle 0x4800db
nop dword [eax]
mov edx, dword [edi]
lea ecx, [esp + 0x3c]
call fcn.0044eec0
test eax, eax
jne 0x4803ad
inc esi
add edi, 0x18
cmp esi, dword [ebx]
jl 0x4800c0
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 0x1c]
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x480081
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x3c]
mov edx, dword [ebx + 0xc]
call fcn.0044eec0
test eax, eax
jne 0x4803db
cmp byte [esi + 0x9d], al
jne 0x480336
mov ecx, dword [esp + 0x18]
mov ebx, dword [ecx + 8]
lea edi, [ecx + 0x78]
test ebx, ebx
jne 0x480143
cmp dword [edi], ebx
jne 0x480130
mov eax, dword [ecx]
test byte [eax + 0x44], 8
jne 0x480130
mov byte [ecx + 0x17], 1
call fcn.00429580
mov ebx, eax
test ebx, ebx
je 0x4803ad
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
mov dword [esp + 0x14], edx
test edx, edx
jne 0x480153
mov dword [esp + 0x14], ecx
mov edx, ecx
mov edi, dword [esp + 0x1c]
mov eax, 1
mov ecx, edi
shl eax, cl
mov ecx, dword [edx + 0x5c]
test ecx, eax
jne 0x480179
bts ecx, edi
mov dword [edx + 0x5c], ecx
cmp edi, 1
jne 0x480179
mov ecx, edx
call fcn.00457d00
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x58]
bts eax, edi
mov dword [ecx + 0x58], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
test ecx, ecx
jne 0x48019f
xor edi, edi
jmp 0x4801d3
mov ecx, eax
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
mov ecx, esi
call fcn.004058c0
mov edi, eax
add esp, 8
test edi, edi
je 0x4801d3
push dword [esp + 0x14]
push dword [esp + 0x24]
push edi
call fcn.004f79b0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [eax + edi], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push edi
push dword [eax + 4]
mov eax, dword [esi + 0x10]
push dword [esp + 0x30]
push str.sqlite_master
push dword [ecx + eax]
mov eax, dword [esp + 0x2c]
push str.INSERT_INTO__Q._s_VALUES_trigger__Q__Q_0_CREATE_TRIGGER__q_
push eax
call fcn.0044f880
add esp, 0x1c
test edi, edi
je 0x480294
cmp dword [esi + 0x1d0], 0
je 0x48021c
mov edx, edi
mov ecx, esi
call fcn.00405430
jmp 0x480294
cmp edi, dword [esi + 0x128]
jb 0x48023c
cmp edi, dword [esi + 0x12c]
jae 0x48023c
mov eax, dword [esi + 0x124]
mov dword [edi], eax
mov dword [esi + 0x124], edi
jmp 0x480294
cmp dword [0x55a418], 0
je 0x48028a
mov eax, dword [0x560268]
test eax, eax
je 0x480258
push eax
call dword [0x55a474]
add esp, 4
push edi
call dword [0x55a450]
sub dword [0x560070], eax
add esp, 4
dec dword [0x560094]
push edi
call dword [0x55a448]
mov eax, dword [0x560268]
add esp, 4
test eax, eax
je 0x480294
push eax
call dword [0x55a47c]
jmp 0x480291
push edi
call dword [0x55a448]
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x20], ecx
mov edi, dword [ecx + 0x88]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [eax]
mov eax, dword [ecx + 0xc]
inc edx
cmp dword [eax + 0x30], edi
jg 0x4802d4
mov edi, dword [esp + 0x1c]
push edx
push 1
push edi
mov edx, 0x66
call fcn.00429830
add esp, 0xc
jmp 0x48030a
lea eax, [edi + 1]
mov dword [ecx + 0x88], eax
lea ecx, [edi + edi*4]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax + 0x58]
mov dword [eax + ecx*4], 0x66
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push dword [esp + 0x28]
push str.typetrigger_AND_name_q
push esi
call fcn.00407a80
add esp, 0xc
mov edx, edi
mov ecx, ebx
push eax
call fcn.00429c70
mov ebx, dword [esp + 0x14]
add esp, 4
cmp byte [esi + 0x9d], 0
je 0x4803ad
mov eax, dword [esi + 0x10]
mov edi, ebx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ebx
mov ecx, dword [ecx + eax + 0xc]
add ecx, 0x28
call fcn.0040a030
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x480386
cmp byte [esi + 0x49], 0
jne 0x4803b1
cmp byte [esi + 0x4a], 0
jne 0x4803b1
cmp dword [esi + 0xac], 0
mov byte [esi + 0x49], 1
jle 0x48037e
mov dword [esi + 0x100], 1
inc dword [esi + 0x108]
jmp 0x4803b1
mov edx, dword [esp + 0x38]
mov ecx, dword [edi + 0x18]
cmp dword [edx], ecx
jne 0x4803b1
mov edx, dword [edi + 4]
add ecx, 8
push 0
call fcn.00409f50
add esp, 4
mov esi, dword [eax + 8]
mov eax, dword [esi + 0x44]
mov dword [edi + 0x20], eax
mov dword [esi + 0x44], edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
mov edx, eax
call fcn.004803e0
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
call fcn.0047f680
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f49c2
mov esp, ebp
pop ebp
ret
mov eax, ebx
jmp 0x4803b1