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

Disassembly:
sub esp, 0x15c
mov eax, dword [0x6d6ec0]
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 0x581139
mov ecx, dword [esp + 0x174]
cmp dword [eax], esi
jne 0x581132
cmp dword [eax + 0xc], ecx
je 0x581455
mov eax, dword [eax + 4]
test eax, eax
jne 0x581125
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 0x581167
push ebp
call fcn.005a9cf0
add esp, 0xc
jmp 0x58116f
call fcn.005bcc80
add esp, 8
mov edi, eax
test edi, edi
je 0x581446
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 0x5811aa
push ebp
call fcn.005a9cf0
add esp, 0xc
jmp 0x5811b2
call fcn.005bcc80
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x581443
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.005bf9f0
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 0x581296
lea eax, [esp + 0x4c]
push eax
call fcn.005d3190
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x581422
mov eax, dword [esi]
test eax, eax
je 0x5812f6
push eax
push str.___TRIGGER__s
push dword [esp + 0x18]
call fcn.005bcc60
mov edx, eax
add esp, 0xc
mov eax, dword [ebx]
cmp byte [eax + 0x57], 0
je 0x5812c8
test edx, edx
je 0x5812f6
push edx
push eax
call fcn.005a9e10
add esp, 8
jmp 0x5812f6
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 0x5812eb
push 0xfffffffffffffffa
push edx
push eax
push ebx
call fcn.005ee540
add esp, 0x10
jmp 0x5812f6
test edx, edx
je 0x5812f6
mov dword [eax + 0x10], edx
mov byte [eax + 1], 0xfa
mov eax, dword [esi + 0xc]
test eax, eax
je 0x58136d
push 0
push 0
push eax
push dword [esp + 0x1c]
call fcn.00579190
mov ecx, eax
add esp, 0x10
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
cmp byte [eax + 0x57], 0
jne 0x58135f
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.005c7530
add esp, 8
test eax, eax
jne 0x581357
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.005afdc0
add esp, 0x10
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x58136d
push ecx
push eax
call fcn.005afab0
add esp, 8
push dword [esp + 0x17c]
lea eax, [esp + 0x50]
push dword [esi + 0x1c]
push eax
call fcn.00571e50
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
je 0x581396
push eax
push ebx
call fcn.005df080
add esp, 8
push 0x46
push ebx
call fcn.005d2b10
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x28]
call fcn.005ebac0
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp dword [eax + 0x24], 0
jne 0x5813e1
mov eax, dword [esp + 0x18]
mov esi, dword [ebx + 0x68]
add eax, 0x68
push eax
push ebx
call fcn.005995d0
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.005d3250
mov ebx, dword [esp + 0x20]
lea eax, [esp + 0x50]
add esp, 4
push eax
call fcn.005bfa50
add esp, 4
jmp 0x581448
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x4c]
push eax
push ebx
call fcn.005ebac0
add esp, 8
lea eax, [esp + 0x4c]
push eax
call fcn.005bfa50
add esp, 4
jmp 0x581448
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.0061f478
add esp, 0x15c
ret