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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0xb0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
push edi
test esi, esi
je 0x5c94c0
cmp dword [esi + 0x10], 0xffffffff
je 0x5c973f
movaps xmm0, xmmword [0x6d16a0]
movups xmmword [esp + 0x68], xmm0
test esi, esi
je 0x5c9527
movd xmm1, dword [esi]
movd xmm2, dword [esi + 4]
movd xmm3, dword [esi + 8]
movd xmm4, dword [esi + 0xc]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
subss xmm1, dword [0x6b7e70]
subss xmm2, dword [0x6b7e70]
cvtdq2ps xmm3, xmm3
cvtdq2ps xmm4, xmm4
subss xmm3, dword [0x6b7e80]
subss xmm4, dword [0x6b7e80]
movss dword [esp + 0x58], xmm1
movss dword [esp + 0x5c], xmm2
movss dword [esp + 0x60], xmm3
movss dword [esp + 0x64], xmm4
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esp + 0x2c], eax
test eax, eax
jle 0x5c973f
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x6c]
push eax
push ecx
call fcn.005f0b20
add esp, 0xc
test al, al
je 0x5c972a
test esi, esi
je 0x5c9575
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.005f0b20
add esp, 0xc
test al, al
je 0x5c972a
movss xmm1, dword [0x6ce47c]
movss xmm0, dword [esp + 0x38]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [esp + 0x3c]
mulss xmm0, xmm1
mov dword [esp + 0x10], edx
cvttss2si eax, xmm0
movss xmm0, dword [esp + 0x40]
mulss xmm0, xmm1
mov dword [esp + 0x20], eax
cvttss2si edi, xmm0
movss xmm0, dword [esp + 0x44]
mulss xmm0, xmm1
cvttss2si ebx, xmm0
test esi, esi
je 0x5c9718
cmp edx, edi
mov ecx, edx
cmovg ecx, edi
cmp eax, ebx
mov dword [esp + 0x18], ecx
mov ecx, eax
cmovg ecx, ebx
cmp edx, edi
mov dword [esp + 0x14], ecx
mov ecx, edx
mov edx, dword [esp + 0x18]
cmovl ecx, edi
cmp eax, ebx
cmovl eax, ebx
sar edx, 6
dec edx
add ecx, 0x3f
mov dword [esp + 0x18], edx
add eax, 0x3f
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x14]
sar edx, 6
sar ecx, 6
dec edx
sar eax, 6
inc ecx
inc eax
mov dword [esp + 0x14], edx
cmp dword [esi + 0x10], 0xffffffff
mov dword [esp + 0x4c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x54], eax
je 0x5c972a
mov eax, dword [esp + 0x18]
cmp eax, ecx
jge 0x5c972a
mov ecx, edx
cmp ecx, dword [esp + 0x1c]
jge 0x5c972a
mov edx, dword [esi]
cmp edx, dword [esi + 8]
jge 0x5c972a
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
jge 0x5c972a
cmp edx, dword [esp + 0x28]
jge 0x5c972a
cmp eax, dword [esi + 8]
jge 0x5c972a
mov edx, dword [esi + 4]
cmp edx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
jge 0x5c972a
cmp ecx, dword [esi + 0xc]
jge 0x5c972a
cmp dword [esi + 0x10], 0
jne 0x5c96b7
cmp dword [esi], eax
jg 0x5c96b7
cmp dword [esi + 4], ecx
jg 0x5c96b7
mov eax, dword [esi + 8]
cmp eax, dword [esp + 0x28]
jl 0x5c96b7
mov eax, dword [esi + 0xc]
cmp eax, dword [esp + 0x1c]
jl 0x5c96b7
mov eax, 1
jmp 0x5c96b9
xor eax, eax
test al, al
jne 0x5c9714
lea eax, [esp + 0x48]
push eax
push esi
lea ecx, [esp + 0x80]
call fcn.0058ee00
cmp byte [esp + 0xb4], 0
jne 0x5c972a
mov esi, dword [esp + 0x10]
lea ecx, [ecx]
push dword [esp + 0x30]
lea eax, [esp + 0xa8]
push eax
push ebx
push edi
push dword [esp + 0x30]
push esi
call fcn.005c9ac0
add esp, 0x18
lea ecx, [esp + 0x78]
call fcn.0058f9f0
cmp byte [esp + 0xb4], 0
je 0x5c96e0
mov esi, dword [esp + 0x34]
jmp 0x5c972a
mov eax, dword [esp + 0x20]
push dword [esp + 0x30]
push 0
push ebx
push edi
push eax
push edx
call fcn.005c9ac0
add esp, 0x18
mov ecx, dword [esp + 0x24]
add ecx, 8
dec dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
jne 0x5c9537
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005472b9
mov esp, ebp
pop ebp
ret