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

Disassembly:
sub esp, 0x44
mov eax, dword [0x631220]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x68]
test ebx, ebx
je 0x5d4af1
push ebp
xor ebp, ebp
mov byte [esp + 0xe], 0
push esi
test eax, eax
je 0x5d48ec
mov esi, dword [esp + 0x64]
mov byte [esp + 0x12], 1
test esi, esi
je 0x5d48e7
cmp esi, 4
jb 0x5d48e7
push esi
push ebp
push eax
call fcn.005e0f30
mov ebp, esi
add esp, 0xc
shr ebp, 2
test ebp, ebp
jne 0x5d48ec
mov byte [esp + 0x12], 0
mov dword [ebx], 0
test edi, edi
je 0x5d48fc
mov dword [edi], 0
call fcn.005d9230
mov edx, eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x5d4ad7
mov ecx, dword [esp + 0x6c]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x1c], 0x48
test ecx, ecx
mov dword [esp + 0x14], 1
mov al, 1
mov dword [esp + 0x2c], 0
cmove ecx, dword [esp + 0x1c]
mov dword [esp + 0x6c], ecx
xor ecx, ecx
mov byte [esp + 0x13], al
mov dword [esp + 0x1c], ecx
cmp byte [esp + 0x12], cl
je 0x5d4976
cmp byte [esp + 0x68], cl
jne 0x5d4976
call fcn.005d9580
mov edx, dword [esp + 0x18]
mov ecx, eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x5d4972
mov ecx, 0xfffffffd
xor al, al
mov dword [esp + 0x14], ecx
jmp 0x5d497b
mov al, byte [esp + 0x13]
mov ecx, 1
mov dword [esp + 0x4c], ebx
test al, al
je 0x5d4a9e
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push dword [esp + 0x78]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call edx
test eax, eax
jne 0x5d4a89
cmp byte [esp + 0x68], al
je 0x5d49de
cmp byte [esp + 0x12], al
je 0x5d49d7
cmp esi, ebp
jae 0x5d49cf
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov dword [ecx + esi*4], eax
test edi, edi
je 0x5d49c8
add dword [edi], 4
mov edx, dword [esp + 0x18]
inc esi
jmp 0x5d4987
mov dword [esp + 0x14], 2
mov edx, dword [esp + 0x18]
inc esi
jmp 0x5d4987
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5d4a71
cmp byte [esp + 0x12], 0
je 0x5d4a71
cmp esi, ebp
jae 0x5d4a69
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], 0
push ecx
push 0x1c
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], 0
push ecx
push 0
push dword [esp + 0x3c]
xorps xmm0, xmm0
movdqu xmmword [esp + 0x44], xmm0
movq qword [esp + 0x54], xmm0
call eax
test eax, eax
jne 0x5d4a71
cmp dword [esp + 0x4c], eax
je 0x5d4a71
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
mov dword [ecx + esi*4], eax
test edi, edi
je 0x5d4a48
add dword [edi], 4
xorps xmm0, xmm0
mov dword [esp + 0x4c], 0
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x48], 0
movq qword [esp + 0x40], xmm0
jmp 0x5d4a71
mov dword [esp + 0x14], 2
test ebx, ebx
je 0x5d4a7b
push ebx
call fcn.005d82c0
mov ebx, dword [esp + 0x2c]
inc esi
mov edx, dword [esp + 0x18]
jmp 0x5d4987
test ebx, ebx
je 0x5d4a9a
cmp byte [esp + 0x68], 0
jne 0x5d4a9a
push ebx
call fcn.005d82c0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov dword [eax], esi
test esi, esi
jne 0x5d4ac0
lea eax, [esi - 4]
pop esi
pop ebp
pop edi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005e0482
add esp, 0x44
ret 0x1c
pop esi
pop ebp
pop edi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005e0482
add esp, 0x44
ret 0x1c
pop esi
pop ebp
pop edi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.005e0482
add esp, 0x44
ret 0x1c
mov ecx, dword [esp + 0x48]
or eax, 0xffffffff
pop edi
pop ebx
xor ecx, esp
call fcn.005e0482
add esp, 0x44
ret 0x1c