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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
push esi
push edi
mov edi, dword [0x10091850]
mov esi, ecx
mov dword [esp + 0x8c], edx
mov dword [esp + 0x50], esi
mov dword [esp + 0x68], edi
mov eax, dword [edi + 0x1a78]
mov ecx, eax
and eax, 0xffffffef
shr ecx, 4
mov dword [edi + 0x1a78], eax
and ecx, 0xffffff01
mov eax, dword [edi + 0x19f8]
mov dword [esp + 0x58], ecx
mov byte [eax + 0x7c], 1
mov eax, dword [edi + 0x19f8]
mov dword [esp + 0x3c], eax
cmp byte [eax + 0x7f], 0
jne 0x59ad69
mov eax, dword [ebp + 8]
and eax, 0x60
cmp al, 0x60
jne 0x59a6eb
push 0x6c2
push 0x10088f60
push 0x10089260
call dword [0x1005d2e0]
add esp, 0xc
push ecx
mov ecx, dword [esp + 0x40]
push esi
call fcn.0056db38
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [0x10091850]
mov dword [esp + 0x40], eax
mov eax, edx
and eax, 0x20
mov dword [esp + 0x44], eax
je 0x59a719
movss dword [esp + 0x60], xmm0
jmp 0x59a733
movss xmm1, dword [esi + 0x154c]
addss xmm1, xmm1
addss xmm1, dword [esi + 0x18c8]
movss dword [esp + 0x60], xmm1
mov ecx, dword [esp + 0x50]
mov eax, ecx
cmp ecx, 0xffffffff
jae 0x59a758
mov cl, byte [eax]
test cl, cl
je 0x59a754
cmp cl, 0x23
jne 0x59a74e
cmp byte [eax + 1], cl
je 0x59a754
inc eax
cmp eax, 0xffffffff
jb 0x59a73e
mov ecx, dword [esp + 0x50]
movss xmm6, dword [esi + 0x18c8]
cmp ecx, eax
jne 0x59a769
movaps xmm3, xmm0
jmp 0x59a7bb
movss xmm3, dword [0x1008b38c]
movaps xmm2, xmm6
push 0
push eax
push ecx
push ecx
mov ecx, dword [esi + 0x18c4]
lea eax, [esp + 0x20]
mov dword [esp], 0xbf800000
push eax
call fcn.005933d8
movss xmm0, dword [esp + 0x10]
addss xmm0, dword [0x1008b274]
movss xmm6, dword [esp + 0x14]
mov esi, dword [0x10091850]
mov edx, dword [ebp + 8]
cvttss2si eax, xmm0
xorps xmm0, xmm0
movd xmm3, eax
cvtdq2ps xmm3, xmm3
test byte [esi + 0x1ad0], 1
mov ecx, dword [esi + 0x19f8]
movss dword [esp + 0x6c], xmm3
je 0x59a7da
movss xmm1, dword [esi + 0x1ad4]
jmp 0x59a7e2
movss xmm1, dword [ecx + 0x1a8]
comiss xmm0, xmm1
jbe 0x59a81a
mov eax, ecx
cmp dword [eax + 0x190], 0
movss xmm2, dword [eax + 0x244]
je 0x59a802
movss xmm2, dword [eax + 0x224]
subss xmm2, dword [ecx + 0xc8]
addss xmm2, xmm1
movss xmm1, dword [0x1008b278]
maxss xmm1, xmm2
mov eax, edx
and eax, 0x40
mov dword [esp + 0x18], eax
je 0x59a82d
movss xmm1, dword [esp + 0x60]
jmp 0x59a838
cvttss2si eax, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
comiss xmm3, xmm0
mov eax, dword [esp + 0x3c]
movss xmm4, dword [eax + 0xc8]
movss xmm7, dword [edi + 0x154c]
movaps xmm2, xmm4
movss xmm5, dword [eax + 0xcc]
addss xmm2, xmm1
movss dword [esp + 0x54], xmm1
movaps xmm1, xmm7
addss xmm1, xmm7
movss dword [esp + 0x2c], xmm4
movss dword [esp + 0x30], xmm5
movss dword [esp + 0x34], xmm2
addss xmm1, xmm6
addss xmm1, xmm5
movss dword [esp + 0x38], xmm1
jbe 0x59a89d
movss xmm3, dword [edi + 0x1560]
addss xmm3, dword [esp + 0x6c]
jmp 0x59a8a0
movaps xmm3, xmm0
addss xmm1, xmm0
movss dword [esp + 0x70], xmm4
addss xmm2, xmm3
movss dword [esp + 0x74], xmm5
lea ecx, [esp + 0x10]
movss dword [esp + 0x7c], xmm1
subss xmm1, xmm5
movss dword [esp + 0x78], xmm2
subss xmm2, xmm4
movss dword [esp + 0x14], xmm1
movaps xmm1, xmm7
movss dword [esp + 0x10], xmm2
call fcn.0056e008
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x2c]
push eax
mov edx, esi
lea ecx, [esp + 0x74]
call fcn.0056e138
add esp, 4
test al, al
je 0x59ad69
push 0
lea eax, [esp + 0x12]
mov edx, esi
push eax
lea eax, [esp + 0x17]
push eax
lea ecx, [esp + 0x38]
call fcn.00595df8
mov esi, dword [0x10091850]
add esp, 0xc
mov byte [esp + 0xe], al
mov ecx, dword [esi + 0x1b14]
cmp dword [esi + 0x1b08], ecx
jle 0x59a94a
lea edx, [ecx + ecx*8]
mov ecx, dword [esi + 0x1b10]
mov esi, dword [esp + 0x40]
cmp dword [ecx + edx*4], esi
jne 0x59a94e
mov byte [esp + 0xd], 1
jmp 0x59a953
mov esi, dword [esp + 0x40]
mov byte [esp + 0xd], 0
movss xmm1, dword [0x1008b278]
xor ecx, ecx
cmp byte [esp + 0xf], cl
setne cl
add ecx, 7
call fcn.0056bc98
movss xmm0, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
subss xmm0, dword [esp + 0x60]
movss xmm1, dword [esp + 0x2c]
mov edx, esi
push 1
mov dword [esp + 0x14], eax
maxss xmm1, xmm0
movss dword [esp + 0x50], xmm1
call fcn.0056cf38
mov esi, dword [esp + 0x1c]
add esp, 4
mov ecx, 0xf
test esi, esi
jne 0x59a9f9
movss xmm0, dword [esp + 0x4c]
mov eax, 5
cmp dword [esp + 0x44], esi
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x38]
cmovne eax, ecx
push eax
push ecx
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x20]
movss dword [esp + 0x24], xmm0
movss xmm0, dword [edi + 0x1550]
movss dword [esp], xmm0
push dword [esp + 0x18]
mov ecx, dword [ecx + 0x278]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0058e728
cmp dword [esp + 0x44], 0
jne 0x59ab8b
cmp byte [esp + 0xd], 0
jne 0x59aa1a
cmp byte [esp + 0xf], 0
mov dword [esp + 0x44], 0x15
je 0x59aa22
mov dword [esp + 0x44], 0x16
movss xmm1, dword [0x1008b278]
xor ecx, ecx
call fcn.0056bc98
movss xmm0, dword [esp + 0x4c]
mov edx, 0xa
movss xmm1, dword [0x1008b278]
movss dword [esp + 0x18], xmm0
movss xmm0, dword [esp + 0x30]
movss dword [esp + 0x1c], xmm0
movss xmm0, dword [esp + 0x60]
comiss xmm0, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, 0xf
movss xmm0, dword [edi + 0x1550]
cmovae edx, eax
push edx
push ecx
mov ecx, dword [esp + 0x4c]
movss dword [esp], xmm0
call fcn.0056bc98
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x278]
call fcn.0058e728
movss xmm1, dword [esp + 0x4c]
movss xmm2, dword [esp + 0x34]
movaps xmm0, xmm1
addss xmm0, dword [esp + 0x60]
subss xmm0, dword [edi + 0x1548]
comiss xmm2, xmm0
jb 0x59ab8b
mov eax, dword [esp + 0x3c]
movss xmm6, dword [edi + 0x154c]
push dword [esp + 0x10]
movaps xmm5, xmm6
mov ecx, dword [eax + 0x278]
addss xmm5, xmm1
addss xmm6, dword [esp + 0x34]
mov eax, dword [ecx + 0x28]
movss xmm0, dword [eax + 0xc]
lea eax, [esp + 0x1c]
movaps xmm4, xmm0
mulss xmm0, dword [0x1008b208]
push eax
mulss xmm4, dword [0x1008b1f8]
lea eax, [esp + 0x4c]
push eax
addss xmm5, xmm0
addss xmm6, xmm0
movaps xmm2, xmm4
lea eax, [esp + 0x6c]
mulss xmm2, dword [0x1008b130]
movaps xmm3, xmm4
push eax
mulss xmm3, dword [0x1008b244]
movaps xmm1, xmm4
mulss xmm1, dword [0x1008b3a8]
movaps xmm0, xmm4
mulss xmm0, dword [0x1008b25c]
addss xmm2, xmm5
mulss xmm4, dword [0x1008b3a4]
addss xmm3, xmm6
addss xmm0, xmm5
addss xmm1, xmm5
movss dword [esp + 0x70], xmm2
addss xmm4, xmm6
movss dword [esp + 0x74], xmm3
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x54], xmm1
movss dword [esp + 0x2c], xmm4
movss dword [esp + 0x58], xmm4
call fcn.0058edd8
push dword [esp + 0x38]
movss xmm0, dword [edi + 0x1550]
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x38]
call fcn.0056c918
mov ecx, dword [esp + 0x9c]
add esp, 0x10
movss xmm2, dword [esp + 0x30]
test ecx, ecx
je 0x59ac88
test esi, esi
jne 0x59ac88
movss xmm0, dword [esp + 0x4c]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esp + 0x38]
movss dword [esp + 0x48], xmm0
movss xmm0, dword [edi + 0x1548]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
addss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [edi + 0x154c]
mov edi, ecx
addss xmm0, xmm2
movss dword [esp + 0x14], xmm0
cmp ecx, 0xffffffff
jae 0x59ac2d
nop dword [eax]
mov al, byte [edi]
test al, al
je 0x59ac2d
cmp al, 0x23
jne 0x59ac27
cmp byte [edi + 1], al
je 0x59ac2d
inc edi
cmp edi, 0xffffffff
jb 0x59ac18
mov eax, edi
sub eax, ecx
je 0x59ac84
mov esi, dword [0x10091850]
lea eax, [esp + 0x18]
push 0
push eax
push 0
push edi
push ecx
mov ecx, dword [esi + 0x19f8]
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x28]
mov ecx, dword [ecx + 0x278]
call fcn.0056bf08
add esp, 0x18
cmp byte [esi + 0x2db4], 0
je 0x59ac7e
mov edx, dword [esp + 0x8c]
lea ecx, [esp + 0x10]
push edi
call fcn.0057d838
add esp, 4
movss xmm2, dword [esp + 0x30]
mov edi, dword [esp + 0x68]
movss xmm0, dword [esp + 0x6c]
comiss xmm0, dword [0x1008b130]
jbe 0x59ad4f
movss xmm1, dword [edi + 0x1560]
movss xmm0, dword [edi + 0x154c]
addss xmm1, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
addss xmm0, xmm2
mov edx, dword [0x10091850]
mov esi, ecx
mov dword [esp + 0x10], edx
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x1c], xmm0
cmp ecx, 0xffffffff
jae 0x59ad4f
nop
mov al, byte [esi]
test al, al
je 0x59aced
cmp al, 0x23
jne 0x59ace7
cmp byte [esi + 1], al
je 0x59aced
inc esi
cmp esi, 0xffffffff
jb 0x59acd8
cmp ecx, esi
je 0x59ad4f
movss xmm1, dword [0x1008b278]
push 0
push ecx
mov dword [esp], 0
push esi
push ecx
xor ecx, ecx
call fcn.0056bc98
mov ecx, dword [edx + 0x19f8]
movss xmm2, dword [edx + 0x18c8]
push eax
lea eax, [esp + 0x2c]
mov ecx, dword [ecx + 0x278]
push eax
push dword [edx + 0x18c4]
call fcn.0058f248
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x2db4], 0
je 0x59ad4f
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x18]
push esi
call fcn.0057d838
add esp, 4
cmp byte [esp + 0xe], 0
mov ecx, dword [esp + 0x40]
jne 0x59ad71
cmp dword [edi + 0x1b2c], ecx
je 0x59ad71
cmp byte [esp + 0xd], 0
jne 0x59ad90
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0xd], 0
jne 0x59ad90
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x134], 0
jne 0x59ad8b
mov dword [eax + 0x308], ecx
call fcn.00578c08
cmp byte [esp + 0x58], 0
je 0x59adb9
movss xmm0, dword [edi + 0x1aac]
maxss xmm0, dword [esp + 0x54]
or dword [edi + 0x1a78], 0x10
movss dword [edi + 0x1aac], xmm0
jmp 0x59ae84
mov edx, dword [ebp + 8]
mov ecx, edx
mov eax, edx
or ecx, 4
and al, 0x1e
cmovne ecx, edx
mov edx, ecx
mov dword [ebp + 8], ecx
and edx, 0x1e
je 0x59add9
lea eax, [edx - 1]
test edx, eax
je 0x59adf4
push 0x6fc
push 0x10088f60
push 0x10089370
call dword [0x1005d2e0]
mov ecx, dword [ebp + 8]
add esp, 0xc
test cl, 4
je 0x59af46
mov edx, 8
mov ecx, dword [0x10091850]
movss xmm1, dword [ecx + 0x155c]
movss xmm3, dword [ecx + 0x18c8]
movss xmm2, dword [ecx + 0x1518]
addss xmm3, xmm1
movd xmm0, edx
addss xmm2, xmm2
cvtdq2ps xmm0, xmm0
mulss xmm3, xmm0
subss xmm3, xmm1
addss xmm3, xmm2
movss xmm0, dword [esp + 0x54]
or dword [ecx + 0x1a78], 0x10
movss dword [esp + 0x70], xmm0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0x7f7fffff
movss dword [esp + 0x7c], xmm3
movups xmm0, xmmword [esp + 0x70]
mov dword [ecx + 0x1abc], 0
mov dword [ecx + 0x1ac0], 0
movups xmmword [ecx + 0x1aac], xmm0
push dword [edi + 0x1b14]
lea eax, [esp + 0x94]
push 0x100893d8
push 0x10
push eax
call fcn.0056ac98
add esp, 0x10
lea ecx, [esp + 0x90]
call fcn.00572088
mov esi, eax
test esi, esi
je 0x59b049
cmp byte [esi + 0x7b], 0
je 0x59b049
mov edx, esi
lea ecx, [esp + 0x10]
call fcn.005726c8
mov eax, ecx
lea ecx, [esp + 0x58]
push eax
call fcn.00572778
add esp, 4
lea ecx, [esp + 0x18]
mov edx, esi
push dword [esp + 0x5c]
push dword [esp + 0x5c]
call fcn.005724c8
add esp, 8
lea eax, [esi + 0x94]
test byte [ebp + 8], 1
je 0x59af03
mov dword [eax], 0
mov esi, dword [0x10091850]
xorps xmm2, xmm2
movss xmm7, dword [0x1008ce20]
movss xmm4, dword [esi + 0x15b0]
movss xmm6, dword [esi + 0x14]
movaps xmm0, xmm4
movss xmm3, dword [esi + 0x15ac]
addss xmm0, xmm4
movss xmm5, dword [esi + 0x10]
movaps xmm1, xmm6
subss xmm1, xmm2
comiss xmm1, xmm0
jbe 0x59af82
xorps xmm4, xmm7
jmp 0x59af85
test cl, 2
je 0x59af55
mov edx, 4
jmp 0x59ae02
mov eax, ecx
mov edx, 0x14
mov ecx, dword [0x10091850]
and eax, 8
mov esi, 0xffffffff
cmove edx, esi
test eax, eax
jne 0x59ae08
movss xmm3, dword [0x1008b38c]
jmp 0x59ae3b
xorps xmm4, xmm4
movaps xmm1, xmm5
movaps xmm0, xmm3
subss xmm1, xmm2
addss xmm0, xmm3
comiss xmm1, xmm0
jbe 0x59af9d
xorps xmm3, xmm7
jmp 0x59afa0
xorps xmm3, xmm3
xorps xmm0, xmm0
lea ecx, [esp + 0x2c]
subss xmm0, xmm3
push 1
push ecx
lea ecx, [esp + 0x78]
push ecx
movss dword [esp + 0x7c], xmm0
subss xmm2, xmm4
movss xmm0, dword [esp + 0x38]
addss xmm5, xmm3
addss xmm6, xmm4
movss dword [esp + 0x64], xmm0
movss xmm0, dword [esp + 0x44]
lea edx, [esp + 0x64]
push eax
lea eax, [esp + 0x28]
movss dword [esp + 0x84], xmm2
push eax
lea ecx, [esp + 0x24]
movss dword [esp + 0x8c], xmm5
movss dword [esp + 0x90], xmm6
movss dword [esp + 0x70], xmm0
call fcn.005795b8
mov eax, dword [esp + 0x24]
add esp, 0x14
or dword [esi + 0x1a78], 1
mov dword [esi + 0x1a88], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1a8c], eax
mov dword [esi + 0x1a90], 0
mov dword [esi + 0x1a94], 0
mov dword [esi + 0x1a7c], 1
jmp 0x59b04f
mov esi, dword [0x10091850]
movss xmm0, dword [edi + 0x1548]
lea eax, [esp + 0x18]
movss xmm1, dword [esi + 0x1514]
lea ecx, [esi + 0x1af0]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [edi + 0x1518]
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esi + 0x1518]
push eax
mov dword [esp + 0x1c], 1
movss dword [esp + 0x20], xmm1
movss dword [esp + 0x24], xmm0
call fcn.0057f7d8
movss xmm0, dword [esp + 0x58]
lea ecx, [esp + 0x90]
movss dword [esi + 0x1514], xmm0
xor edx, edx
movss xmm0, dword [esp + 0x10]
push 0x4000147
movss dword [esi + 0x1518], xmm0
call fcn.00574328
add esp, 4
mov byte [esp + 0xe], al
mov ecx, 1
call fcn.00577738
cmp byte [esp + 0xe], 0
jne 0x59b10b
call fcn.00579418
push 0x71d
push 0x10088f60
push 0x1005d510
call dword [0x1005d2e0]
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret