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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x78
push esi
mov esi, ecx
mov dword [esp + 0x38], 1
xorps xmm2, xmm2
mov dword [esp + 8], esi
mov eax, edx
movss dword [esp + 0x30], xmm2
push edi
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 8], eax
movss xmm1, dword [ecx]
comiss xmm1, xmm2
jbe 0x1005a6a3
mov edi, dword [eax + 4]
mov edx, dword [eax + 0x1c]
mov eax, 0x100
cwde
movzx ecx, byte [edx + edi + 6]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + edi + 7]
movzx edx, byte [edx + edi + 5]
add cx, ax
movsx esi, cx
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x1c]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub eax, esi
mov esi, dword [esp + 0xc]
movd xmm0, eax
jmp 0x1005a6c3
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 4]
xorps xmm1, xmmword [0x101c7e10]
movzx ecx, byte [edx + eax + 0x12]
movzx eax, byte [edx + eax + 0x13]
shl ecx, 8
add ecx, eax
movd xmm0, ecx
mov edx, dword [ebp + 8]
cvtdq2ps xmm0, xmm0
movzx edi, byte [edx + 0x14]
mov eax, edi
mov dword [esi + 0x1c], edi
movss xmm4, dword [0x101c736c]
movzx ecx, byte [edx + 0x15]
movaps xmm3, xmm4
divss xmm1, xmm0
shr eax, 0x1f
mov dword [esi + 0x20], ecx
movd xmm0, edi
cvtdq2pd xmm0, xmm0
movss dword [esp + 0x20], xmm1
addsd xmm0, qword [eax*8 + 0x101c7d70]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm3, xmm0
movd xmm0, ecx
movss dword [esp + 0x5c], xmm3
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x101c7d70]
mov eax, 1
cvtpd2ps xmm0, xmm0
divss xmm4, xmm0
movss dword [esp + 0x64], xmm4
test edi, edi
je 0x1005a75a
movd xmm0, edi
sub eax, edi
cvtdq2ps xmm0, xmm0
movd xmm2, eax
mov eax, 1
cvtdq2ps xmm2, xmm2
addss xmm0, xmm0
divss xmm2, xmm0
movss dword [esp + 0x30], xmm2
test ecx, ecx
je 0x1005a782
movd xmm0, ecx
sub eax, ecx
cvtdq2ps xmm0, xmm0
movd xmm2, eax
cvtdq2ps xmm2, xmm2
addss xmm0, xmm0
divss xmm2, xmm0
movss dword [esp + 0x34], xmm2
xor ecx, ecx
mov dword [esp + 0x38], ecx
cmp dword [edx + 0xc], ecx
jle 0x1005ac53
mov edi, dword [ebp + 0x10]
add edi, 8
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], edi
nop
cmp dword [edi + 4], 0
je 0x1005ac31
movzx eax, word [edi - 4]
mov dword [esp + 0x28], eax
test ax, ax
je 0x1005ac31
movzx eax, word [edi - 2]
mov dword [esp + 0x1c], eax
test ax, ax
je 0x1005ac31
mov eax, dword [edx + 0x10]
add eax, dword [esp + 0x24]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 8]
test eax, eax
jne 0x1005a7e5
mov edx, dword [edx + 4]
add edx, ecx
jmp 0x1005a7e8
mov edx, dword [eax + ecx*4]
mov ecx, dword [esp + 8]
call fcn.10053830
movzx ecx, word [esi + 0x14]
add word [edi], cx
add word [edi + 2], cx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
sub eax, ecx
mov word [edi - 4], ax
mov eax, dword [esp + 0x1c]
sub eax, ecx
mov word [edi - 2], ax
mov eax, dword [esp + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x1c]
movzx ecx, byte [eax + edx + 0x23]
movzx eax, byte [eax + edx + 0x22]
mov edx, dword [esp + 0x14]
shl eax, 8
add eax, ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], eax
cmp edx, eax
mov eax, dword [ecx + 0x20]
jge 0x1005a85b
lea edx, [eax + edx*4]
mov eax, 0x100
add edx, dword [ecx + 4]
cwde
movzx ecx, byte [edx]
movsx ecx, cx
imul ecx, eax
movzx eax, byte [edx + 1]
jmp 0x1005a886
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 8]
lea edx, [eax + edx*4]
mov eax, dword [ecx + 4]
movzx ecx, byte [edx + eax - 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
mov eax, dword [edi + 4]
mov edi, dword [esp + 0x10]
movzx eax, byte [edx + eax - 3]
add cx, ax
mov edx, dword [esp + 0x14]
movzx eax, cx
cwde
mov dword [esp + 0x54], eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x64]
push eax
mov eax, dword [esi + 0x20]
sub esp, 8
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov dword [esp + 4], 0
mov dword [esp], 0
addsd xmm0, qword [eax*8 + 0x101c7d70]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm3, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mulss xmm3, xmm1
addsd xmm0, qword [eax*8 + 0x101c7d70]
cvtpd2ps xmm2, xmm0
mulss xmm2, xmm1
call fcn.100569f0
mov eax, dword [esi + 0x10]
movzx edi, word [edi + 2]
mov edx, dword [esp + 0x28]
imul edi, eax
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x24]
movzx eax, word [edx]
add edi, eax
mov eax, dword [esi + 0x1c]
add edi, dword [esi + 0x24]
movzx esi, word [edx - 4]
mov ecx, dword [ecx + 0x20]
sub esi, eax
movzx edx, word [edx - 2]
inc esi
movd xmm0, eax
sub edx, ecx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
inc edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x2c]
addsd xmm0, qword [eax*8 + 0x101c7d70]
lea eax, [esp + 0x44]
push eax
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x38], xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x101c7d70]
mov ecx, dword [esp + 0x24]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x34], xmm0
call fcn.100566f0
movss xmm3, dword [esp + 0x34]
add esp, 0x1c
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
push 0
push 0
push eax
lea eax, [esp + 0x58]
push eax
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], 0
movss xmm2, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
call fcn.100569f0
mov ecx, dword [esp + 0x40]
add esp, 0x18
mov eax, dword [esp + 0x40]
test esi, esi
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x7c], edi
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
je 0x1005aade
test ecx, ecx
je 0x1005aade
movss xmm0, dword [esp + 0x18]
lea eax, [esp + 0x14]
minss xmm0, dword [esp + 0x1c]
movss xmm2, dword [0x101c7318]
mov edx, dword [esp + 0x44]
push ecx
push eax
divss xmm2, xmm0
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], 0
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.10059890
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1005aade
movss xmm0, dword [esp + 0x18]
lea ecx, [esp + 0x70]
mov esi, dword [esp + 0x28]
sub esp, 8
mov edx, edi
push dword [esp + 0x50]
push dword [esp + 0x58]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
movss dword [esp + 4], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esp], xmm0
push dword [esp + 0x34]
push esi
call fcn.10058f20
add esp, 0x28
test esi, esi
je 0x1005aaab
mov eax, dword [0x102062d4]
test eax, eax
je 0x1005aaab
dec dword [eax + 0x374]
push dword [0x102069e8]
push esi
call dword [0x101eaf54]
mov eax, dword [0x102062d4]
add esp, 8
test eax, eax
je 0x1005aaca
dec dword [eax + 0x374]
push dword [0x102069e8]
push edi
call dword [0x101eaf54]
mov esi, dword [esp + 0x34]
add esp, 8
test esi, esi
je 0x1005aaf1
mov eax, dword [0x102062d4]
test eax, eax
je 0x1005aaf1
dec dword [eax + 0x374]
push dword [0x102069e8]
push esi
call dword [0x101eaf54]
mov eax, dword [esp + 0x14]
add esp, 8
mov edi, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, 1
jbe 0x1005ab3e
mov esi, dword [eax + 0x10]
movzx eax, word [edi - 2]
movzx edx, word [edi - 4]
push ecx
movzx ecx, word [edi + 2]
imul ecx, esi
push esi
push eax
movzx eax, word [edi]
add ecx, eax
mov eax, dword [esp + 0x18]
add ecx, dword [eax + 0x24]
call fcn.1005a150
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [eax + 0x20]
cmp ecx, 1
jbe 0x1005ab6f
mov esi, dword [eax + 0x10]
movzx eax, word [edi - 2]
movzx edx, word [edi - 4]
push ecx
movzx ecx, word [edi + 2]
imul ecx, esi
push esi
push eax
movzx eax, word [edi]
add ecx, eax
mov eax, dword [esp + 0x18]
add ecx, dword [eax + 0x24]
call fcn.1005a3a0
add esp, 0xc
mov esi, dword [esp + 0x50]
movzx eax, word [edi]
movd xmm0, dword [esp + 0x54]
movss xmm1, dword [esp + 0x20]
mov ecx, dword [esp + 0x58]
cvtdq2ps xmm0, xmm0
mov word [esi], ax
movzx eax, word [edi + 2]
mov word [esi + 2], ax
movzx eax, word [edi - 4]
add ax, word [edi]
mulss xmm0, xmm1
mov edx, dword [esp + 0x60]
mov word [esi + 4], ax
movzx eax, word [edi - 2]
add ax, word [edi + 2]
movss dword [esi + 0x10], xmm0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov word [esi + 6], ax
mulss xmm0, dword [esp + 0x5c]
addss xmm0, dword [esp + 0x30]
movss dword [esi + 8], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x64]
addss xmm0, dword [esp + 0x34]
movss dword [esi + 0xc], xmm0
movzx eax, word [edi - 4]
add eax, ecx
mov ecx, dword [esp + 0x38]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x5c]
addss xmm0, dword [esp + 0x30]
movss dword [esi + 0x14], xmm0
movzx eax, word [edi - 2]
add eax, edx
mov edx, dword [ebp + 8]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esp + 0x64]
addss xmm0, dword [esp + 0x34]
movss dword [esi + 0x18], xmm0
mov esi, dword [esp + 0xc]
jmp 0x1005ac39
mov dword [esp + 0x3c], 0
add dword [esp + 0x24], 0x1c
inc ecx
add edi, 0x10
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], edi
cmp ecx, dword [edx + 0xc]
jl 0x1005a7a0
mov eax, dword [esp + 0x68]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x3c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret