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

Disassembly:
sub esp, 0x15c
mov eax, dword [0x6d5ec0]
xor eax, esp
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x168]
push ebx
mov ebx, dword [esp + 0x164]
mov dword [esp + 8], eax
mov eax, ebx
push esi
mov esi, dword [esp + 0x16c]
mov edx, dword [ebx + 0x80]
test edx, edx
mov dword [esp + 0x14], ebx
cmovne eax, edx
mov dword [esp + 0x1c], esi
mov eax, dword [eax + 0x88]
test eax, eax
je 0x580859
mov ecx, dword [esp + 0x174]
cmp dword [eax], esi
jne 0x580852
cmp dword [eax + 0xc], ecx
je 0x580b75
mov eax, dword [eax + 4]
test eax, eax
jne 0x580845
push ebp
mov ebp, dword [ebx]
test edx, edx
push edi
mov eax, ebx
mov dword [esp + 0x10], ebp
cmovne eax, edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], eax
push 0
push 0x18
test ebp, ebp
je 0x580887
push ebp
call fcn.005a9460
add esp, 0xc
jmp 0x58088f
call fcn.005bc3f0
add esp, 8
mov edi, eax
test edi, edi
je 0x580b66
mov ecx, dword [esp + 0x18]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
push 0
movq qword [edi + 0x10], xmm0
mov eax, dword [ecx + 0x88]
mov dword [edi + 4], eax
mov dword [ecx + 0x88], edi
push 0x1c
test ebp, ebp
je 0x5808ca
push ebp
call fcn.005a9460
add esp, 0xc
jmp 0x5808d2
call fcn.005bc3f0
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x580b63
mov ecx, dword [esp + 0x18]
xorps xmm0, xmm0
push dword [esp + 0x10]
movups xmmword [ebp], xmm0
movq qword [ebp + 0x10], xmm0
mov dword [ebp + 0x18], 0
mov dword [edi + 8], ebp
mov ecx, dword [ecx + 8]
mov eax, dword [ecx + 0xe0]
mov dword [ebp + 0x18], eax
mov eax, dword [esp + 0x180]
mov dword [ecx + 0xe0], ebp
mov dword [edi + 0xc], eax
lea eax, [esp + 0x50]
mov dword [edi], esi
push eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
call fcn.005bf160
lea eax, [esp + 0x54]
xorps xmm0, xmm0
mov dword [esp + 0x30], eax
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xcc], eax
mov eax, dword [esi]
mov dword [esp + 0x150], eax
movzx eax, byte [esi + 8]
mov byte [esp + 0xea], al
mov ax, word [ebx + 0x9c]
mov word [esp + 0xe8], ax
movzx eax, byte [ebx + 0x19]
mov ebx, dword [esp + 0x54]
movlpd qword [esp + 0x2c], xmm0
movlpd qword [esp + 0x34], xmm0
movlpd qword [esp + 0x3c], xmm0
movlpd qword [esp + 0x44], xmm0
mov byte [esp + 0x65], al
test ebx, ebx
jne 0x5809b6
lea eax, [esp + 0x4c]
push eax
call fcn.005d28f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x580b42
mov eax, dword [esi]
test eax, eax
je 0x580a16
push eax
push str.___TRIGGER__s
push dword [esp + 0x18]
call fcn.005bc3d0
mov edx, eax
add esp, 0xc
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x5809e8
test edx, edx
je 0x580a16
push edx
push eax
call fcn.005a9580
add esp, 8
jmp 0x580a16
mov eax, dword [ebx + 0x6c]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x580a0b
push 0xfffffffffffffffa
push edx
push eax
push ebx
call fcn.005edca0
add esp, 0x10
jmp 0x580a16
test edx, edx
je 0x580a16
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
mov eax, dword [esi + 0xc]
test eax, eax
je 0x580a8d
push 0
push 0
push eax
push dword [esp + 0x1c]
call fcn.005788c0
mov ecx, eax
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
cmp byte [eax + 0x57], 0
jne 0x580a7f
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.005c6c90
add esp, 8
test eax, eax
jne 0x580a77
mov eax, dword [esp + 0x84]
dec eax
push 0x10
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x90], eax
lea eax, [esp + 0x58]
push eax
call fcn.005af530
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x580a8d
push ecx
push eax
call fcn.005af220
add esp, 8
push dword [esp + 0x17c]
lea eax, [esp + 0x50]
push dword [esi + 0x1c]
push eax
call fcn.00571580
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x580ab6
push eax
push ebx
call fcn.005de7e0
add esp, 8
push 0x46
push ebx
call fcn.005d2270
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x28]
call fcn.005eb220
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp dword [eax + 0x24], 0
jne 0x580b01
mov eax, dword [esp + 0x18]
mov esi, dword [ebx + 0x68]
add eax, 0x68
push eax
push ebx
call fcn.00598cf0
mov eax, dword [ebx + 0x6c]
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebx + 0x68], 0
mov dword [ebp], esi
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x78]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x14], esi
mov eax, dword [esp + 0xe0]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0xe4]
push ebx
mov dword [edi + 0x14], eax
call fcn.005d29b0
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x50]
add esp, 4
push eax
call fcn.005bf1c0
add esp, 4
jmp 0x580b68
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
push ebx
call fcn.005eb220
add esp, 8
lea eax, [esp + 0x4c]
push eax
call fcn.005bf1c0
add esp, 4
jmp 0x580b68
mov dword [edi + 8], ebp
xor edi, edi
mov ecx, dword [ebx]
mov eax, edi
pop edi
pop ebp
mov dword [ecx + 0x44], 0xffffffff
mov ecx, dword [esp + 0x160]
pop esi
pop ebx
xor ecx, esp
call fcn.0061eb08
add esp, 0x15c
ret