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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x100bd040]
xor eax, esp
mov dword [esp + 0x94], eax
mov edx, dword [0x100c353c]
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], edx
lea edi, [esp + 0x78]
xor edx, edx
mov dword [esp + 0x28], ecx
mov byte [ecx + 0x67], dl
mov esi, edx
push 9
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x28]
mov dword [esp + 0x24], esi
mov byte [esp + 8], dl
mov dword [esp + 0x1c], edx
mov eax, dword [edi]
mov dword [esp + 0x2c], 1
test eax, eax
jle 0x1005d898
mov ecx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
mov eax, dword [edi + 8]
add edx, eax
mov dword [esp + 0x18], eax
mov eax, dword [edx + 8]
cmp eax, dword [edi + 0x24]
jl 0x1005d85b
cmp byte [edx + 0x28], 0
jne 0x1005d85b
cmp esi, dword [esp + 0x1c]
je 0x1005d7da
push 0xb
pop ecx
mov esi, edx
lea edi, [esp + 0x48]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
lea esi, [esp + 0x48]
add edi, dword [esp + 0x18]
push 0xb
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 8]
test byte [eax + ecx + 4], 0x40
mov word [eax + ecx + 0x26], si
je 0x1005d7ed
xor ecx, ecx
jmp 0x1005d7f9
test byte [eax + ecx + 4], 0x80
push 0
pop ecx
setne cl
inc ecx
test esi, esi
jle 0x1005d842
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + edx - 0x28]
test al, 0x40
je 0x1005d810
xor eax, eax
jmp 0x1005d819
test al, 0x80
push 0
pop eax
setne al
inc eax
test ecx, ecx
jne 0x1005d82a
test eax, eax
je 0x1005d842
xor edx, edx
inc edx
mov dword [esp + 8], edx
jmp 0x1005d82e
mov edx, dword [esp + 8]
cmp eax, 2
jne 0x1005d842
cmp ecx, eax
movzx edx, dl
push 1
pop eax
cmovne edx, eax
mov dword [esp + 8], edx
imul eax, ecx, 0xc
mov ecx, dword [esp + 0x14]
inc dword [esp + eax + 0x78]
inc esi
add ecx, 0x2c
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], ecx
jmp 0x1005d87c
mov eax, dword [edi + 0x1c]
cmp eax, dword [edx]
jne 0x1005d866
and dword [edi + 0x1c], 0
mov eax, dword [edi + 0x14]
cmp eax, dword [edx]
jne 0x1005d871
and dword [edi + 0x14], 0
mov eax, dword [edi + 0x18]
cmp eax, dword [edx]
jne 0x1005d87c
and dword [edi + 0x18], 0
mov edx, dword [esp + 0x1c]
add dword [esp + 0xc], 0x2c
inc edx
mov eax, dword [edi]
cmp edx, eax
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
jl 0x1005d78d
cmp eax, esi
je 0x1005d8c9
mov eax, dword [edi + 4]
cmp esi, eax
jle 0x1005d8c5
test eax, eax
je 0x1005d8b3
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [edi + 4]
jmp 0x1005d8b6
push 8
pop ecx
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, edi
push eax
call fcn.1005f6a5
mov dword [edi], esi
mov eax, esi
cmp byte [esp + 8], 0
je 0x1005d8ea
xor ecx, ecx
inc ecx
cmp eax, ecx
jbe 0x1005d8ea
push 0x1005d28b
push 0x2c
push eax
push dword [edi + 8]
call fcn.100745a0
add esp, 0x10
cmp dword [esp + 0x78], 0
jle 0x1005d911
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x90]
test eax, eax
jle 0x1005d911
mov eax, dword [esp + 0x10]
movss xmm0, dword [eax + 0x37ec]
jmp 0x1005d918
mov eax, dword [esp + 0x10]
xorps xmm0, xmm0
cmp dword [esp + 0x84], 0
movss dword [esp + 0x80], xmm0
jle 0x1005d93f
cmp dword [esp + 0x90], 0
jle 0x1005d93f
movss xmm0, dword [eax + 0x37ec]
jmp 0x1005d942
xorps xmm0, xmm0
xor esi, esi
movss dword [esp + 0x8c], xmm0
mov dword [esp + 0x14], esi
cmp dword [edi + 0x18], esi
je 0x1005d964
mov esi, dword [edi + 0x18]
and dword [edi + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [edi + 0x14], esi
cmp dword [edi + 0x60], 0
je 0x1005d986
mov ecx, edi
call fcn.1005e2ae
test al, al
je 0x1005d982
mov eax, dword [edi + 0x60]
cmp eax, dword [edi + 0x14]
cmove esi, eax
mov dword [esp + 0x14], esi
and dword [edi + 0x60], 0
mov eax, dword [edi + 0xc]
shr eax, 2
test al, 1
je 0x1005d9a4
mov ecx, edi
call fcn.1005e597
test eax, eax
je 0x1005d9a4
mov esi, dword [eax]
mov dword [esp + 0x14], esi
mov dword [edi + 0x14], esi
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x10]
add eax, ecx
and dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
mov eax, dword [edi]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edx + 0x4a50]
mov dword [esp + 8], eax
cmp eax, ecx
jle 0x1005da5c
test ecx, ecx
je 0x1005d9e9
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
add eax, ecx
jmp 0x1005d9ec
push 8
pop eax
mov ecx, dword [esp + 8]
cmp eax, ecx
cmovg ecx, eax
mov dword [esp + 0x20], ecx
cmp ecx, dword [edx + 0x4a50]
jle 0x1005da58
imul ecx, ecx, 0xc
call fcn.10006c3a
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
cmp dword [edx + 0x4a54], 0
je 0x1005da48
imul ecx, dword [edx + 0x4a4c], 0xc
push ecx
push dword [edx + 0x4a54]
push eax
call fcn.1006dd10
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [edx + 0x4a54]
call fcn.10006c52
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov dword [edx + 0x4a54], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 0x4a50], eax
mov eax, dword [esp + 8]
or dword [esp + 0x20], 0xffffffff
xor ecx, ecx
mov dword [edx + 0x4a4c], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x24], cl
mov dword [esp + 0xc], ecx
cmp dword [edi], ecx
jle 0x1005dbc2
mov dword [esp + 8], ecx
mov ecx, dword [edi + 8]
add ecx, dword [esp + 8]
mov dword [esp + 0x18], ecx
test eax, eax
je 0x1005da9e
mov eax, dword [eax + 0xc]
cmp eax, dword [ecx + 0xc]
jge 0x1005daac
mov eax, dword [esp + 0x1c]
test dword [ecx + 4], 0x200000
cmove eax, ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x24]
mov eax, dword [ecx]
cmp eax, dword [edi + 0x14]
movzx edx, dl
cmove edx, dword [esp + 0x2c]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x10]
test esi, esi
jne 0x1005dad2
cmp dword [edx + 0x47c8], eax
cmove esi, eax
mov eax, dword [ecx + 0x20]
xorps xmm0, xmm0
add eax, dword [edi + 0x8c]
movss xmm1, dword [ecx + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 4]
and eax, 0x100001
cmp eax, 0x100000
setne al
comiss xmm1, xmm0
jae 0x1005db1a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
call fcn.1005efe9
mov edx, dword [esp + 0x14]
xorps xmm0, xmm0
pop ecx
mov ecx, dword [esp + 0x18]
movss xmm1, dword [eax]
test byte [ecx + 4], 0x40
movss dword [ecx + 0x18], xmm1
je 0x1005db29
xor eax, eax
jmp 0x1005db34
test byte [ecx + 4], 0x80
push 0
pop eax
setne al
inc eax
imul ecx, eax, 0xc
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x20]
jne 0x1005db49
movss xmm0, dword [edx + 0x37ec]
mov edi, dword [esp + 0x14]
addss xmm1, xmm0
mov dword [esp + 0x20], eax
add dword [esp + 8], 0x2c
addss xmm1, dword [esp + ecx + 0x7c]
movss dword [esp + ecx + 0x7c], xmm1
mov ecx, dword [esp + eax*4 + 0x34]
lea eax, [ecx + 1]
mov dword [esp + edi*4 + 0x34], eax
mov edi, dword [esp + 0x28]
imul eax, ecx, 0xc
mov ecx, dword [esp + 0xc]
add eax, dword [edx + 0x4a54]
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
movss xmm0, dword [ecx + 0x18]
movss dword [eax + 8], xmm0
movss dword [eax + 4], xmm0
movss xmm0, dword [ecx + 0x18]
maxss xmm0, dword [0x100b1aa4]
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
movss dword [ecx + 0x14], xmm0
cmp eax, dword [edi]
mov eax, dword [esp + 0x1c]
jl 0x1005da83
mov dword [esp + 0x14], esi
push 3
xorps xmm4, xmm4
lea eax, [esp + 0x84]
xorps xmm1, xmm1
pop ecx
movss xmm0, dword [eax - 4]
addss xmm0, dword [eax]
add eax, 0xc
addss xmm1, xmm0
sub ecx, 1
jne 0x1005dbd2
movss dword [edi + 0x44], xmm1
movss xmm0, dword [edi + 0x30]
subss xmm0, dword [edi + 0x28]
comiss xmm1, xmm0
jbe 0x1005dc2f
xor eax, eax
inc eax
cmp dword [edi], eax
jle 0x1005dc2f
mov eax, dword [edi + 0xc]
and al, 0x90
cmp al, 0x80
jne 0x1005dc2f
mov ecx, edi
call fcn.1005e37a
mov edx, dword [esp + 0x10]
xorps xmm4, xmm4
test eax, eax
je 0x1005dc2f
test dword [eax + 4], 0x200000
mov esi, dword [eax]
mov dword [esp + 0x14], esi
jne 0x1005dc2f
mov dword [edi + 0x14], esi
movss xmm3, dword [esp + 0x94]
movss xmm1, dword [esp + 0x7c]
addss xmm3, dword [esp + 0x98]
addss xmm1, dword [esp + 0x80]
movss xmm0, dword [edi + 0x30]
subss xmm0, dword [edi + 0x28]
movaps xmm2, xmm3
addss xmm2, xmm1
comiss xmm0, xmm2
seta al
test al, al
je 0x1005dc8f
movss xmm2, dword [esp + 0x88]
subss xmm0, xmm1
addss xmm2, dword [esp + 0x8c]
subss xmm0, xmm3
subss xmm2, xmm0
maxss xmm2, xmm4
jmp 0x1005dc93
subss xmm2, xmm0
comiss xmm2, dword [0x100b1aa4]
jb 0x1005dd98
test byte [edi + 0xc], 0x40
jne 0x1005dcae
test al, al
jne 0x1005dd98
test al, al
je 0x1005dcd2
mov eax, dword [esp + 0x84]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 8]
add eax, dword [esp + 0x78]
mov dword [esp + 0xc], ecx
jmp 0x1005dce7
mov eax, dword [esp + 0x90]
add eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
xor eax, eax
mov ecx, dword [edx + 0x4a54]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], eax
imul eax, eax, 0xc
add ecx, eax
mov dword [esp + 0x2c], eax
call fcn.1004dfd1
mov eax, dword [esp + 0xc]
xorps xmm6, xmm6
add eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jge 0x1005dd9f
mov ecx, dword [esp + 0x2c]
mov eax, dword [edx + 0x4a54]
imul esi, dword [ecx + eax], 0x2c
cvttss2si eax, dword [ecx + eax + 4]
add esi, dword [edi + 8]
mov dword [esp + 0xc], esi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm6, xmm0
ja 0x1005dd8c
movss xmm2, dword [0x100b1aa4]
mov eax, esi
maxss xmm2, xmm0
mov eax, dword [eax + 4]
test al, 0x40
je 0x1005dd5c
xor eax, eax
jmp 0x1005dd65
test al, 0x80
push 0
pop eax
setne al
inc eax
mov esi, dword [esp + 0xc]
imul eax, eax, 0xc
movss xmm1, dword [esi + 0x14]
subss xmm1, xmm2
movss xmm0, dword [esp + eax + 0x7c]
subss xmm0, xmm1
movss dword [esp + eax + 0x7c], xmm0
mov eax, esi
movss dword [eax + 0x14], xmm2
add ecx, 0xc
sub dword [esp + 8], 1
jne 0x1005dd20
jmp 0x1005dd9f
mov edx, dword [esp + 0x10]
xorps xmm6, xmm6
xor esi, esi
movaps xmm2, xmm6
and dword [edi + 0x40], esi
xor ecx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 8], ecx
imul eax, ecx, 0xc
mov dword [esp + 0x18], eax
cmp ecx, 2
jne 0x1005dddb
movss xmm1, dword [edi + 0x30]
movaps xmm0, xmm6
subss xmm1, dword [edi + 0x28]
subss xmm1, dword [esp + eax + 0x7c]
maxss xmm0, xmm1
minss xmm0, xmm2
movaps xmm2, xmm0
and dword [esp + 0xc], 0
mov ecx, dword [esp + eax + 0x78]
test ecx, ecx
jle 0x1005de3a
imul ecx, esi, 0x2c
mov esi, dword [edi + 8]
mov edi, dword [esp + 0x18]
add esi, 0x14
add esi, ecx
movss dword [esi - 4], xmm2
mov ecx, dword [esp + edi + 0x78]
lea eax, [ecx - 1]
cmp dword [esp + 0xc], eax
jge 0x1005de13
movss xmm0, dword [edx + 0x37ec]
jmp 0x1005de16
movaps xmm0, xmm6
addss xmm0, dword [esi]
mov eax, dword [esp + 0xc]
add esi, 0x2c
inc eax
mov dword [esp + 0xc], eax
addss xmm2, xmm0
cmp eax, ecx
jl 0x1005ddf7
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
movss xmm1, dword [esp + eax + 0x80]
add esi, ecx
mov ecx, dword [esp + 8]
addss xmm2, xmm1
movaps xmm0, xmm1
mov dword [esp + 0x20], esi
addss xmm0, dword [esp + eax + 0x7c]
inc ecx
mov dword [esp + 8], ecx
maxss xmm0, xmm6
addss xmm0, dword [edi + 0x40]
movss dword [edi + 0x40], xmm0
cmp ecx, 3
jl 0x1005ddb1
cmp byte [esp + 0x24], 0
mov esi, dword [esp + 0x14]
jne 0x1005de85
and dword [edi + 0x14], 0
mov ecx, dword [edi + 0x14]
mov eax, ecx
test ecx, ecx
jne 0x1005dea2
cmp dword [edi + 0x18], ecx
jne 0x1005dea2
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1005dea2
mov esi, dword [ecx]
mov eax, esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x1c], eax
mov byte [edi + 0x68], 0
test esi, esi
je 0x1005debc
lea eax, [esp + 0x78]
mov edx, esi
push eax
mov ecx, edi
call fcn.1005e0bd
pop ecx
movss xmm7, dword [edi + 0x28]
movss xmm0, dword [edi + 0x30]
movss xmm2, dword [edi + 0x40]
subss xmm0, xmm7
movss xmm3, dword [edi + 0x48]
movaps xmm1, xmm2
movss xmm4, dword [edi + 0x4c]
mov esi, dword [esp + 0x10]
subss xmm1, xmm0
minss xmm3, xmm1
maxss xmm3, xmm6
movss dword [edi + 0x48], xmm3
movss xmm5, dword [edi + 0x30]
movaps xmm0, xmm5
subss xmm0, xmm7
subss xmm2, xmm0
minss xmm4, xmm2
maxss xmm4, xmm6
ucomiss xmm3, xmm4
movss dword [edi + 0x4c], xmm4
lahf
test ah, 0x44
jnp 0x1005dfa6
movss xmm0, dword [esi + 0x3bb4]
mulss xmm0, dword [0x100b1bf4]
mov eax, dword [edi + 0x24]
movss xmm2, dword [edi + 0x54]
inc eax
maxss xmm2, xmm0
movaps xmm0, xmm4
subss xmm0, xmm3
andps xmm0, xmmword [0x100b1ee0]
divss xmm0, dword [0x100b1a40]
maxss xmm2, xmm0
movss dword [edi + 0x54], xmm2
cmp eax, dword [esi + 0x3dc8]
jl 0x1005df9c
movss xmm1, dword [esi + 0x3bb4]
mulss xmm1, dword [0x100b1b98]
movss xmm0, dword [edi + 0x50]
comiss xmm0, xmm1
ja 0x1005df9c
comiss xmm4, xmm3
mulss xmm2, dword [esi + 0x18]
jbe 0x1005df8d
addss xmm3, xmm2
minss xmm3, xmm4
jmp 0x1005df9f
comiss xmm3, xmm4
jbe 0x1005df9f
subss xmm3, xmm2
maxss xmm3, xmm4
jmp 0x1005df9f
movaps xmm3, xmm4
movss dword [edi + 0x48], xmm3
jmp 0x1005dfaa
and dword [edi + 0x54], 0
test dword [edi + 0xc], 0x100000
movss xmm0, dword [esp + 0x7c]
subss xmm5, dword [esp + 0x94]
addss xmm0, xmm7
subss xmm5, dword [esp + 0x8c]
addss xmm0, dword [esp + 0x80]
movss dword [edi + 0x5c], xmm5
movss dword [edi + 0x58], xmm0
jne 0x1005dfef
push 0
lea ecx, [edi + 0x84]
call fcn.1001bd63
mov esi, dword [esi + 0x3e28]
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x28]
mov dword [esi + 0xf0], ecx
lea ecx, [esp + 0x2c]
mov dword [esi + 0xec], eax
movss xmm0, dword [edi + 0x40]
movss xmm1, dword [edi + 0x78]
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [edi + 0x34]
subss xmm0, dword [edi + 0x2c]
movss dword [esp + 0x30], xmm0
call fcn.1000f819
movss xmm1, dword [edi + 0x44]
addss xmm1, dword [edi + 0x28]
movss xmm0, dword [esi + 0x10c]
mov ecx, dword [esp + 0x9c]
pop edi
maxss xmm0, xmm1
movss dword [esi + 0x10c], xmm0
pop esi
xor ecx, esp
call fcn.10069b82
mov esp, ebp
pop ebp
ret