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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x102a000c]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x102a0b70]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0x17fc]
mov dword [esp + 0x4c], ecx
mov byte [eax + 0x8e], 1
mov eax, dword [edi + 0x17fc]
mov dword [esp + 0x20], eax
cmp byte [eax + 0x90], 0
je 0x1005b57a
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.1001ed23
mov esp, ebp
pop ebp
ret
mov eax, edx
xorps xmm5, xmm5
shr eax, 1
and al, 1
mov dword [esp + 0x50], eax
jne 0x1005b5a9
test edx, 0x400
jne 0x1005b5a9
movss xmm0, dword [edi + 0x1418]
movss dword [esp + 0x78], xmm0
mov dword [esp + 0x7c], 0
jmp 0x1005b5c1
mov ecx, dword [edi + 0x141c]
mov eax, dword [edi + 0x1418]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
movss xmm2, dword [eax + 4]
mov dword [esp + 0x94], eax
movss dword [esp + 0x24], xmm2
test esi, esi
jne 0x1005b5f7
mov esi, ecx
cmp ecx, 0xffffffff
jae 0x1005b5f7
mov al, byte [esi]
test al, al
je 0x1005b5f7
cmp al, 0x23
jne 0x1005b5f1
cmp byte [esi + 1], al
je 0x1005b5f7
inc esi
cmp esi, 0xffffffff
jb 0x1005b5e2
movss xmm1, dword [edi + 0x172c]
mov eax, dword [edi + 0x1728]
mov dword [esp + 0x98], eax
movss dword [esp + 0x28], xmm1
cmp ecx, esi
jne 0x1005b61e
movaps xmm3, xmm5
movaps xmm6, xmm1
jmp 0x1005b68a
movss xmm3, dword [0x10293f48]
movaps xmm2, xmm1
push ecx
push esi
push ecx
push ecx
lea ecx, [esp + 0x68]
mov dword [esp], 0xbf800000
push ecx
mov ecx, eax
call fcn.100873e0
movss xmm1, dword [esp + 0x58]
xorps xmm5, xmm5
comiss xmm1, xmm5
jbe 0x1005b663
mov eax, dword [esp + 0x98]
movss xmm0, dword [esp + 0x28]
divss xmm0, dword [eax]
subss xmm1, xmm0
addss xmm1, dword [0x10293de4]
movss xmm6, dword [edi + 0x172c]
movss xmm2, dword [esp + 0x24]
cvttss2si eax, xmm1
movss xmm1, dword [esp + 0x5c]
movd xmm3, eax
cvtdq2ps xmm3, xmm3
mov edx, dword [esp + 0x20]
movaps xmm0, xmm2
mov eax, dword [edi + 0x17fc]
addss xmm2, xmm2
movss dword [esp + 0xa4], xmm1
movss dword [esp + 0xa0], xmm3
maxss xmm0, dword [edx + 0xfc]
movss xmm4, dword [edx + 0xf8]
mov ecx, dword [eax + 0x1a0]
addss xmm2, xmm1
movss xmm1, dword [eax + 0x4c]
movss dword [esp + 0x58], xmm0
movss xmm0, dword [edi + 0x141c]
addss xmm0, xmm0
addss xmm0, xmm6
minss xmm4, xmm0
maxss xmm4, xmm2
test ecx, ecx
je 0x1005b737
mov edx, dword [ecx + 0xc]
movss xmm0, dword [ecx + 0x14]
lea eax, [edx + 1]
test eax, eax
cmovns edx, eax
mov eax, dword [edi + 0x17fc]
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [eax + 0x1a0]
movss xmm1, dword [edx + 0x18]
mov eax, dword [edx + 0x34]
subss xmm1, xmm0
mov edx, dword [esp + 0x20]
mulss xmm1, dword [eax + ecx*4]
mov eax, dword [edi + 0x17fc]
addss xmm1, xmm0
subss xmm1, dword [eax + 0x54]
cmp byte [esp + 0x50], 0
movaps xmm0, xmm4
addss xmm0, dword [edx + 0xdc]
addss xmm1, dword [edx + 0x14]
movss xmm7, dword [edx + 0xd8]
movss xmm2, dword [edx + 0xdc]
movss dword [esp + 0x30], xmm7
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x80], xmm7
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x84], xmm2
movss dword [esp + 0x88], xmm1
movss dword [esp + 0x8c], xmm0
je 0x1005b7f3
movss xmm0, dword [edx + 0x54]
mulss xmm0, dword [0x10293db4]
cvttss2si eax, xmm0
movd xmm0, eax
mov eax, dword [esp + 0x94]
cvtdq2ps xmm0, xmm0
subss xmm0, dword [0x10293df0]
subss xmm7, xmm0
addss xmm0, xmm1
movss xmm1, dword [eax]
movaps xmm2, xmm1
mulss xmm2, dword [0x10293e48]
movss dword [esp + 0x30], xmm7
movss dword [esp + 0x88], xmm0
movaps xmm0, xmm1
movss dword [esp + 0x80], xmm7
addss xmm0, xmm1
jmp 0x1005b805
mov eax, dword [esp + 0x94]
movss xmm2, dword [eax]
addss xmm2, xmm2
movaps xmm0, xmm2
comiss xmm3, xmm5
movaps xmm1, xmm6
addss xmm1, xmm2
movss dword [esp + 0x54], xmm1
jbe 0x1005b81d
addss xmm0, xmm3
jmp 0x1005b820
movaps xmm0, xmm5
movss xmm1, dword [esp + 0x58]
addss xmm6, xmm0
lea ecx, [esp + 0x98]
movss dword [esp + 0x9c], xmm4
movss dword [esp + 0x98], xmm6
call fcn.1006a550
cmp byte [esp + 0x50], 0
lea eax, [esp + 0x60]
je 0x1005b862
movaps xmm0, xmmword [esp + 0x80]
movaps xmmword [esp + 0x60], xmm0
jmp 0x1005b89a
movss xmm0, dword [esp + 0x24]
addss xmm6, xmm7
movss dword [esp + 0x64], xmm0
movss xmm0, dword [edi + 0x1428]
addss xmm0, xmm0
movss dword [esp + 0x60], xmm7
addss xmm0, xmm6
movss dword [esp + 0x68], xmm0
movss xmm0, dword [esp + 0x28]
movss dword [esp + 0x6c], xmm0
movups xmm0, xmmword [eax]
mov eax, dword [esp + 0x18]
mov ecx, eax
and ecx, 0x100
movups xmmword [esp + 0x60], xmm0
mov dword [esp + 0x28], ecx
je 0x1005b8be
mov byte [esp + 0x10], 1
jmp 0x1005b9f6
mov ecx, dword [0x102a0b70]
mov dword [esp + 0xa8], ecx
cmp dword [ecx + 0x18cc], 0
mov edx, dword [ecx + 0x17fc]
mov dword [esp + 0x98], edx
mov edx, dword [edx + 0x138]
je 0x1005b997
test byte [ecx + 0x18cc], 1
je 0x1005b927
mov al, byte [ecx + 0x18ca]
mov ecx, edx
mov dword [esp + 0x10], eax
movzx eax, al
push eax
push dword [esp + 0x18]
call fcn.1006bc70
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x18cc], 0
jmp 0x1005b9b9
push 0xffffffffffffffff
push dword [esp + 0x18]
mov ecx, edx
call fcn.1006bd60
cmp eax, 0xffffffff
jne 0x1005b97b
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x98]
mov al, byte [eax + 0x18ca]
mov ecx, dword [ecx + 0x138]
mov dword [esp + 0x10], eax
movzx eax, al
push eax
push dword [esp + 0x18]
call fcn.1006bc70
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x18cc], 0
jmp 0x1005b9b9
mov edx, dword [esp + 0xa8]
test eax, eax
setne cl
mov dword [esp + 0x10], ecx
mov dword [edx + 0x18cc], 0
jmp 0x1005b9b9
shr eax, 5
mov ecx, edx
and eax, 1
push eax
push dword [esp + 0x18]
call fcn.1006bd60
mov edx, dword [esp + 0xa8]
test eax, eax
setne cl
mov dword [esp + 0x10], ecx
cmp byte [edx + 0x28f0], 0
je 0x1005b9f6
test byte [esp + 0x18], 0x10
jne 0x1005b9f6
mov eax, dword [esp + 0x98]
movzx ecx, cl
mov dword [esp + 0x98], 1
mov eax, dword [eax + 0x10c]
cmp eax, dword [edx + 0x2900]
cmovl ecx, dword [esp + 0x98]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x60]
call fcn.1006a3d0
test al, al
je 0x1005be97
mov eax, dword [esp + 0x18]
mov ecx, eax
and ecx, 4
mov edx, eax
mov dword [esp + 0xa8], ecx
or ecx, 0x140
shl ecx, 4
and edx, 0x40
mov dword [esp + 0x98], edx
je 0x1005ba41
and eax, 0x80
or eax, 0x400
shr eax, 6
or ecx, eax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1e]
push ecx
push eax
lea eax, [esp + 0x27]
push eax
lea ecx, [esp + 0x6c]
call fcn.1005cf70
add esp, 0xc
test al, al
je 0x1005bb04
cmp dword [esp + 0x28], 0
jne 0x1005bb04
mov eax, dword [esp + 0x18]
test al, 0xc0
sete cl
mov byte [esp + 0x1d], cl
test al, al
jns 0x1005babf
movss xmm0, dword [esp + 0x60]
lea edx, [esp + 0xb0]
addss xmm0, dword [esp + 0x54]
push 1
lea ecx, [esp + 0x64]
movss dword [esp + 0xb4], xmm0
movss xmm0, dword [esp + 0x70]
movss dword [esp + 0xb8], xmm0
call fcn.10065ea0
mov cl, byte [esp + 0x21]
add esp, 4
or cl, al
cmp dword [esp + 0x98], 0
je 0x1005bacf
or cl, byte [edi + 0x371]
cmp byte [edi + 0x1af0], 0
mov eax, dword [esp + 0x10]
je 0x1005bae0
test al, al
jne 0x1005bb04
test cl, cl
je 0x1005bb04
test al, al
sete al
mov dword [esp + 0x10], eax
movzx eax, al
push eax
mov eax, dword [esp + 0x24]
push dword [esp + 0x18]
mov ecx, dword [eax + 0x138]
call fcn.1006bc70
cmp dword [esp + 0xa8], 0
je 0x1005bb13
call fcn.10065970
cmp byte [esp + 0x1e], 0
mov dl, byte [esp + 0x1f]
je 0x1005bb29
test dl, dl
je 0x1005bb29
mov ecx, 0x1a
jmp 0x1005bb33
xor ecx, ecx
test dl, dl
setne cl
add ecx, 0x18
movss xmm1, dword [0x10293df0]
call fcn.1006c350
cmp byte [esp + 0x50], 0
movss xmm1, dword [esp + 0x54]
movss xmm2, dword [esp + 0x30]
movaps xmm0, xmm1
movss xmm4, dword [esp + 0x24]
addss xmm0, xmm2
movss xmm3, dword [esp + 0x58]
mov dword [esp + 0x20], eax
movss dword [esp + 0xa8], xmm0
movaps xmm0, xmm4
addss xmm0, xmm3
movss dword [esp + 0x98], xmm0
movss dword [esp + 0xac], xmm0
je 0x1005bd02
push dword [esp + 0x8c]
movss xmm2, dword [edi + 0x1420]
mov dl, 1
push dword [esp + 0x8c]
mov ecx, eax
push dword [esp + 0x8c]
push dword [esp + 0x8c]
call fcn.10066710
mov eax, dword [esp + 0xa4]
xor ecx, ecx
cmp byte [esp + 0x20], cl
movss xmm1, dword [0x10293df0]
setne cl
movss xmm0, dword [eax]
addss xmm0, dword [esp + 0x40]
lea ecx, [ecx*2 + 1]
movss dword [esp + 0x38], xmm0
movss xmm0, dword [esp + 0xa8]
movss dword [esp + 0x3c], xmm0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call fcn.10066480
add esp, 0x18
lea ecx, [esp + 0xa8]
cmp byte [edi + 0x28f0], 0
je 0x1005bcc1
mov ax, word [0x100d8f70]
lea edx, [esp + 0x98]
mov word [esp + 0x94], ax
mov al, byte [0x100d8f72]
mov byte [esp + 0x96], al
lea eax, [esp + 0x9b]
push eax
mov dword [esp + 0x9c], 0x23230a
call fcn.10066e10
add esp, 4
mov dword [esp + 0xb0], 0
lea eax, [esp + 0xb0]
mov dword [esp + 0xb4], 0
lea edx, [esp + 0x88]
lea ecx, [esp + 0xa8]
push 0
push eax
lea eax, [esp + 0xa8]
push eax
push esi
push dword [esp + 0x5c]
call fcn.10066830
add esp, 0x14
lea eax, [esp + 0x97]
lea edx, [esp + 0x95]
lea ecx, [esp + 0xa8]
push eax
call fcn.10066e10
add esp, 4
jmp 0x1005be97
push 0
lea eax, [esp + 0xb4]
mov dword [esp + 0xb4], 0
push eax
lea eax, [esp + 0xa8]
mov dword [esp + 0xbc], 0
push eax
push esi
push dword [esp + 0x5c]
lea edx, [esp + 0x9c]
call fcn.10066830
add esp, 0x14
jmp 0x1005be97
test dl, dl
jne 0x1005bd12
mov eax, dword [esp + 0x18]
test al, 1
je 0x1005bd9a
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xa0], eax
mov eax, dword [0x102a0b70]
mov dword [esp + 0xb4], ecx
mov ecx, dword [esp + 0x84]
push 0xf
mov dword [esp + 0xa8], ecx
mov ecx, dword [eax + 0x17fc]
lea eax, [esp + 0xb4]
push ecx
mov dword [esp], 0
push dword [esp + 0x28]
mov ecx, dword [ecx + 0x254]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.100897d0
movss xmm1, dword [esp + 0x54]
movss xmm2, dword [esp + 0x30]
movss xmm3, dword [esp + 0x58]
movss xmm4, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
test eax, 0x200
je 0x1005bdec
movss xmm0, dword [edi + 0x172c]
mulss xmm0, dword [0x10293db4]
mulss xmm1, dword [0x10293db4]
addss xmm0, xmm3
addss xmm1, xmm2
addss xmm0, xmm4
movss dword [esp + 0xa0], xmm1
movss dword [esp + 0xa4], xmm0
push dword [esp + 0xa4]
push dword [esp + 0xa4]
call fcn.100663e0
jmp 0x1005be57
cmp dword [esp + 0x28], 0
jne 0x1005be5a
mov eax, dword [esp + 0x94]
xor ecx, ecx
cmp byte [esp + 0x10], cl
movss xmm1, dword [0x10293dc8]
setne cl
movss xmm0, dword [eax]
addss xmm0, xmm2
lea ecx, [ecx*2 + 1]
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [edi + 0x172c]
mulss xmm0, dword [0x10293d94]
addss xmm0, xmm3
addss xmm0, xmm4
movss dword [esp + 0xa4], xmm0
push dword [esp + 0xa4]
push dword [esp + 0xa4]
call fcn.10066480
add esp, 8
cmp byte [edi + 0x28f0], 0
je 0x1005be79
push 0
mov edx, 0x100d8f74
lea ecx, [esp + 0xac]
call fcn.10066e10
add esp, 4
push dword [esp + 0xac]
mov ecx, dword [esp + 0x50]
mov edx, esi
push dword [esp + 0xac]
push 0
call fcn.10066ce0
add esp, 0xc
mov eax, dword [esp + 0x10]
test al, al
je 0x1005beb3
test byte [esp + 0x18], 8
jne 0x1005beb3
mov ecx, dword [esp + 0x14]
call fcn.10048610
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
xor ecx, esp
call fcn.1001ed23
mov esp, ebp
pop ebp
ret