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

Disassembly:
sub esp, 0x58
mov ecx, dword [0x10110f1c]
xor edx, edx
inc edx
push edi
mov eax, dword [ecx + 0x3e40]
mov byte [eax + 0xac], dl
mov edi, dword [ecx + 0x3e40]
mov dword [esp + 0x3c], edi
cmp byte [edi + 0xaf], 0
je 0x1005f439
xor al, al
jmp 0x1005fc59
mov eax, dword [esp + 0x64]
shr eax, 1
push esi
mov esi, dword [0x10110f1c]
and al, dl
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], eax
jne 0x1005f47c
test dword [esp + 0x68], 0x400
jne 0x1005f47c
movss xmm1, dword [esi + 0x37dc]
movss xmm0, dword [edi + 0x128]
minss xmm0, dword [esi + 0x37e0]
movss dword [esp + 0x54], xmm1
jmp 0x1005f492
movss xmm0, dword [esi + 0x37dc]
movss dword [esp + 0x54], xmm0
movss xmm0, dword [esi + 0x37e0]
mov eax, dword [esp + 0x70]
movss dword [esp + 0x48], xmm0
test eax, eax
jne 0x1005f4b0
push eax
push dword [esp + 0x70]
call fcn.100157b2
pop ecx
pop ecx
mov dword [esp + 0x70], eax
push ecx
mov dword [esp], 0xbf800000
push 0
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x38]
push eax
call fcn.1000cb48
movss xmm1, dword [esi + 0x37e0]
add esp, 0x14
movss xmm3, dword [esp + 0x48]
addss xmm1, xmm1
movss xmm6, dword [0x100ba4c8]
movaps xmm0, xmm3
mulss xmm0, xmm6
xorps xmm4, xmm4
addss xmm1, dword [esi + 0x3bd0]
addss xmm0, dword [esp + 0x2c]
minss xmm1, dword [edi + 0x11c]
and dword [esp + 0x18], 0
test dword [esp + 0x68], 0x1000
maxss xmm1, xmm0
je 0x1005f523
movss xmm2, dword [edi + 0x1f0]
jmp 0x1005f52b
movss xmm2, dword [edi + 0xf0]
cmp byte [esp + 0x44], 0
movss xmm7, dword [0x100ba4c0]
movss dword [esp + 0x18], xmm2
movss xmm0, dword [edi + 0xf4]
movss dword [esp + 0x1c], xmm0
movaps xmm0, xmm1
movss xmm5, dword [edi + 0x1f8]
movss dword [esp + 0x20], xmm5
addss xmm0, dword [edi + 0xf4]
movss dword [esp + 0x24], xmm0
je 0x1005f5c1
movss xmm0, dword [edi + 0x44]
mulss xmm0, xmm7
subss xmm0, dword [0x100ba4c4]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
subss xmm2, xmm0
movss dword [esp + 0x18], xmm2
movss xmm0, dword [edi + 0x44]
mulss xmm0, xmm7
movss xmm2, dword [esp + 0x54]
mulss xmm2, dword [0x100ba4cc]
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, xmm5
movss dword [esp + 0x20], xmm0
jmp 0x1005f5cb
movss xmm2, dword [esp + 0x54]
mulss xmm2, xmm6
movss xmm5, dword [esi + 0x3bd0]
movss xmm7, dword [esp + 0x28]
movaps xmm0, xmm5
comiss xmm7, xmm4
addss xmm0, xmm2
movss xmm2, dword [edi + 0x128]
maxss xmm2, xmm3
movss dword [esp + 0x50], xmm0
jbe 0x1005f605
movss xmm4, dword [esp + 0x54]
mulss xmm4, xmm6
addss xmm4, xmm7
addss xmm2, dword [edi + 0xf4]
addss xmm0, dword [edi + 0xf0]
addss xmm5, xmm4
movss dword [esp + 0x3c], xmm1
push ecx
lea eax, [esp + 0x3c]
movss dword [esp], xmm3
push eax
movss dword [esp + 0x38], xmm0
movss dword [esp + 0x50], xmm5
movss dword [esp + 0x3c], xmm2
movss dword [esp + 0x40], xmm5
call fcn.1001254b
cmp byte [esp + 0x4c], 0
lea esi, [esp + 0x20]
lea edi, [esp + 0x10]
movsd dword es:[edi], dword [esi]
pop ecx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x4c]
jne 0x1005f68c
test dword [esp + 0x68], 0x1800
jne 0x1005f68c
movss xmm0, dword [edi + 0x37ec]
movss xmm1, dword [esp + 0x48]
addss xmm0, xmm0
addss xmm1, dword [esp + 0x18]
addss xmm0, xmm1
movss dword [esp + 0x10], xmm0
mov eax, dword [esp + 0x68]
xor edx, edx
push dword [esp + 0x68]
mov esi, dword [esp + 0x68]
inc edx
shr eax, 8
and al, dl
push esi
mov dword [esp + 0x50], eax
call fcn.1005fca2
mov byte [esp + 0x67], al
pop ecx
pop ecx
test al, al
je 0x1005f6e6
cmp byte [edi + 0x47f8], 0
jne 0x1005f6e6
mov eax, dword [esp + 0x68]
and eax, 0x2008
cmp eax, 0x2000
jne 0x1005f6e6
mov edx, dword [esp + 0x40]
mov ecx, dword [edx + 0x17c]
mov eax, dword [edx + 0x178]
bts ecx, eax
mov dword [edx + 0x17c], ecx
push 0
push 0
lea eax, [esp + 0x10]
push esi
push eax
call fcn.1001269c
add esp, 0x10
lea esi, [esp + 0x18]
push 2
pop edx
or dword [edi + 0x46bc], edx
add edi, 0x46e0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test al, al
jne 0x1005f734
mov al, byte [esp + 0x5f]
test al, al
je 0x1005fc58
test byte [esp + 0x68], 8
jne 0x1005fc58
mov edx, dword [esp + 0x64]
push edx
jmp 0x1005fc4e
mov eax, dword [esp + 0x68]
movss xmm2, dword [esp + 0x30]
and eax, 4
subss xmm2, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
neg eax
sbb eax, eax
movss xmm1, dword [esi + 0x3804]
and eax, 0x1000
movss xmm3, dword [esi + 0xdc0]
movaps xmm0, xmm2
mov ecx, eax
subss xmm0, xmm1
or ecx, 0x200
cmp byte [esp + 0x48], 0
cmovne ecx, eax
comiss xmm3, xmm0
jb 0x1005f7ae
movss xmm0, dword [esp + 0x54]
addss xmm1, xmm2
mulss xmm0, dword [0x100ba4c8]
addss xmm0, dword [esi + 0x3bd0]
addss xmm0, xmm1
comiss xmm0, xmm3
jbe 0x1005f7ae
xor edx, edx
inc edx
mov al, dl
jmp 0x1005f7b3
xor edx, edx
xor al, al
inc edx
mov edi, dword [esp + 0x40]
mov byte [esp + 0x5e], al
cmp edi, dword [esi + 0x3e44]
jne 0x1005f7c7
test al, al
jne 0x1005f7d1
or ecx, 0x10000
test al, al
je 0x1005f7d6
or ecx, 0x10
jmp 0x1005f7e8
test byte [esp + 0x68], 0x40
je 0x1005f7e5
or ecx, 0x120
jmp 0x1005f7e8
or ecx, 0x20
mov al, byte [esp + 0x68]
and al, dl
mov byte [esp + 0x5b], al
lea eax, [esp + 0x5c]
push ecx
push eax
lea eax, [esp + 0x65]
push eax
push dword [esp + 0x70]
lea eax, [esp + 0x18]
push eax
call fcn.1005e521
xor cl, cl
add esp, 0x14
cmp byte [esp + 0x48], cl
jne 0x1005f90b
test al, al
je 0x1005f88e
mov eax, dword [esp + 0x64]
cmp dword [esi + 0x49b4], eax
je 0x1005f87d
test byte [esp + 0x68], 0xc0
je 0x1005f839
cmp dword [esi + 0x47cc], eax
jne 0x1005f840
xor edx, edx
inc edx
mov cl, dl
jmp 0x1005f843
xor edx, edx
inc edx
test byte [esp + 0x68], 0x80
je 0x1005f862
cmp byte [esp + 0x5e], 0
je 0x1005f85e
cmp byte [esi + 0x47fb], 0
jne 0x1005f85e
mov al, dl
jmp 0x1005f860
xor al, al
or cl, al
test byte [esp + 0x68], 0x40
je 0x1005f88e
push 2
pop eax
cmp word [esi + 0x370a], ax
mov al, byte [esp + 0x5f]
jne 0x1005f892
mov cl, dl
jmp 0x1005f892
mov al, byte [esp + 0x5f]
push 1
test al, al
movzx ecx, cl
pop edx
cmove ecx, edx
jmp 0x1005f892
mov al, byte [esp + 0x5f]
mov edx, dword [esp + 0x64]
cmp dword [esi + 0x47c4], edx
jne 0x1005f8bb
cmp dword [esi + 0x4824], 0
jne 0x1005f8bb
test al, al
je 0x1005f8bb
xor eax, eax
inc eax
mov byte [esp + 0x40], al
call fcn.10013e0d
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x64]
cmp dword [esi + 0x47c4], eax
jne 0x1005f8e0
xor eax, eax
inc eax
cmp dword [esi + 0x4824], eax
jne 0x1005f8e0
cmp byte [esp + 0x5f], 0
jne 0x1005f8e0
call fcn.10013e0d
jmp 0x1005f8e4
test cl, cl
je 0x1005f90b
mov al, byte [esp + 0x5f]
xor ecx, ecx
inc ecx
xor al, cl
mov ecx, dword [edi + 0x18c]
mov byte [esp + 0x5f], al
movzx eax, al
push eax
push dword [esp + 0x68]
call fcn.1000e937
or dword [esi + 0x46bc], 0x10
cmp dword [esp + 0x3c], 0
je 0x1005f917
call fcn.1000c6ff
push ecx
mov dword [esp], 0x3f800000
push 0
call fcn.1000ab6c
cmp byte [esp + 0x4c], 0
pop ecx
pop ecx
mov cl, byte [esp + 0x5d]
mov dword [esp + 0x4c], eax
je 0x1005fad7
cmp byte [esp + 0x5c], 0
je 0x1005f94b
test cl, cl
je 0x1005f94b
push 0x1a
pop eax
jmp 0x1005f955
xor eax, eax
test cl, cl
setne al
add eax, 0x18
push ecx
mov dword [esp], 0x3f800000
push eax
call fcn.1000ab6c
movss xmm0, dword [esi + 0x37e4]
add esp, 4
xor ecx, ecx
inc ecx
movss dword [esp], xmm0
push ecx
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.10015304
push 2
pop eax
push eax
push dword [esp + 0x84]
lea eax, [esp + 0x3c]
push eax
call fcn.10015571
movss xmm0, dword [esp + 0x58]
add esp, 0x28
test dword [esp + 0x68], 0x200
je 0x1005fa05
movss xmm1, dword [esp + 0x50]
mulss xmm1, dword [0x100bdedc]
push dword [esp + 0x4c]
subss xmm0, xmm1
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esi + 0x3bd0]
mulss xmm0, dword [0x100ba4c0]
addss xmm0, dword [esp + 0x38]
movss dword [esp + 0x40], xmm0
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [edi + 0x264]
call fcn.1003f7b6
add esp, 0x10
jmp 0x1005fa61
cmp byte [esp + 0x48], 0
subss xmm0, dword [esp + 0x50]
jne 0x1005fa5b
addss xmm0, dword [esp + 0x54]
movzx eax, byte [esp + 0x5f]
push ecx
mov dword [esp], 0x3f800000
lea eax, [eax*2 + 1]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esp + 0x38]
push eax
push dword [esp + 0x54]
movss dword [esp + 0x48], xmm0
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [edi + 0x264]
call fcn.1003f641
add esp, 0x18
jmp 0x1005fa61
movss dword [esp + 0x30], xmm0
test dword [esp + 0x68], 0x100000
je 0x1005fa8b
movss xmm1, dword [esi + 0x37dc]
addss xmm1, dword [esi + 0x3bd0]
movss xmm0, dword [esp + 0x20]
subss xmm0, xmm1
movss dword [esp + 0x20], xmm0
cmp byte [esi + 0x5a74], 0
je 0x1005faa2
mov eax, 0x100bc1b8
push eax
push eax
call fcn.10012e90
pop ecx
pop ecx
and dword [esp + 0x38], 0
lea eax, [esp + 0x38]
and dword [esp + 0x3c], 0
push 0
push eax
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x7c]
lea eax, [esp + 0x30]
push dword [esp + 0x7c]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.10014d9b
add esp, 0x1c
jmp 0x1005fc3b
test cl, cl
jne 0x1005fae1
cmp byte [esp + 0x5b], cl
je 0x1005fb2b
cmp byte [esp + 0x5c], 0
je 0x1005faf1
test cl, cl
je 0x1005faf1
push 0x1a
pop eax
jmp 0x1005fafb
xor eax, eax
test cl, cl
setne al
add eax, 0x18
push ecx
mov dword [esp], 0x3f800000
push eax
call fcn.1000ab6c
add esp, 4
and dword [esp], 0
push 0
push eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
call fcn.10015304
add esp, 0x1c
push 2
pop eax
push eax
push dword [esp + 0x68]
lea eax, [esp + 0x20]
push eax
call fcn.10015571
add esp, 0xc
test dword [esp + 0x68], 0x200
je 0x1005fba0
movss xmm1, dword [esp + 0x50]
mulss xmm1, dword [0x100ba4c0]
movss xmm0, dword [esp + 0x30]
push dword [esp + 0x4c]
subss xmm0, xmm1
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [esi + 0x3bd0]
mulss xmm0, dword [0x100ba4c0]
addss xmm0, dword [esp + 0x38]
movss dword [esp + 0x40], xmm0
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [edi + 0x264]
call fcn.1003f7b6
add esp, 0x10
jmp 0x1005fc0a
cmp byte [esp + 0x48], 0
jne 0x1005fc0a
movss xmm0, dword [esp + 0x30]
subss xmm0, dword [esp + 0x50]
movzx eax, byte [esp + 0x5f]
push ecx
mov dword [esp], 0x3f333333
addss xmm0, dword [esp + 0x58]
lea eax, [eax*2 + 1]
push eax
push dword [esp + 0x54]
movss dword [esp + 0x44], xmm0
movss xmm0, dword [esi + 0x3bd0]
mulss xmm0, dword [0x100bdec8]
addss xmm0, dword [esp + 0x40]
movss dword [esp + 0x48], xmm0
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [edi + 0x264]
call fcn.1003f641
add esp, 0x18
cmp byte [esi + 0x5a74], 0
je 0x1005fc21
push 0
push 0x100bd708
call fcn.10012e90
pop ecx
pop ecx
push 0
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.10014c04
add esp, 0x14
mov al, byte [esp + 0x5f]
test al, al
je 0x1005fc58
test byte [esp + 0x68], 8
jne 0x1005fc58
push dword [esp + 0x64]
call fcn.1005fc5e
mov al, byte [esp + 0x63]
pop ecx
pop esi
pop edi
add esp, 0x58
ret