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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x88
mov ecx, dword [esp + 0x9c]
mov edx, 1
shl edx, cl
mov esi, dword [esp + 0xa8]
cmp edx, 8
jg 0x1005b2a9
mov eax, esi
add esp, 0x88
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebx, dword [esp + 0x9c]
lea edi, [esi + edx*8]
mov edx, edi
and edx, 0x1f
neg edx
and edx, 0x1f
add edi, edx
mov edx, ebx
and edx, 1
lea ebp, [edx + 4]
cmp ebp, ebx
jg 0x1005b610
mov ecx, dword [esp + 0x9c]
mov dword [esp], edi
mov dword [esp + 0x28], esi
xor ebx, ebx
sub ecx, edx
add ecx, 0xfffffffe
mov eax, 0x80000001
imul ecx
add edx, ecx
sar ecx, 0x1f
sub edx, ecx
mov dword [esp + 0xc], edx
mov ecx, ebp
mov edi, 1
shl edi, cl
mov esi, 1
mov ecx, dword [esp + 0xa4]
sub ecx, ebp
shl esi, cl
mov ecx, edi
sar ecx, 1
shr ecx, 0x1e
add ecx, edi
sar ecx, 2
test ecx, ecx
jle 0x1005b5fb
mov dword [esp + 8], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ecx
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x28]
xor eax, eax
lea ebx, [ecx + 3]
mov dword [esp + 0x2c], eax
mov eax, 0x80000001
imul ebx
mov eax, esi
imul eax, ecx
mov dword [esp + 0x38], eax
add edx, ebx
sar edx, 1
sar ebx, 0x1f
sub edx, ebx
mov eax, edi
mov dword [esp + 0x30], edx
shr eax, 0x1f
add eax, edi
sar eax, 1
mov dword [esp + 0x64], eax
mov edx, esi
imul edx, eax
lea edi, [edi + edi*2]
mov dword [esp + 0x34], edx
mov eax, edi
sar eax, 1
shr eax, 0x1e
add eax, edi
sar eax, 2
imul eax, esi
lea edx, [esi + esi*2]
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x84], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x44], edx
mov dword [esp + 8], ebx
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
xor edi, edi
mov dword [esp + 0x40], edi
mov ebp, ecx
imul ebp, eax
mov edx, ebx
imul ecx, esi
mov dword [esp + 0x58], ecx
sub edx, ebp
mov dword [esp + 0x80], edx
mov edx, ecx
sub edx, ebx
mov dword [esp + 0x50], edx
mov edx, ebx
sub edx, ecx
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x34]
mov edi, edx
sub edi, ecx
mov dword [esp + 0x4c], edi
imul eax, dword [esp + 0x44]
mov ecx, ebx
mov dword [esp + 0x5c], eax
sub ecx, eax
mov dword [esp + 0x48], ecx
mov ecx, edx
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x18], ecx
mov edx, eax
sub edx, ebx
mov ecx, dword [esp + 0x40]
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x3c]
sub edx, eax
mov dword [esp + 0x10], edx
xor eax, eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xa0]
lea eax, [eax + ebp*4]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x74], eax
xor eax, eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x74]
sub eax, dword [esp + 0x78]
mov edx, dword [ebx + eax*4]
mov eax, dword [esp + 0x6c]
mov dword [ebp + ecx*4], edx
pxor xmm0, xmm0
mov edx, dword [esp + 0x68]
subss xmm0, dword [edi]
movss dword [ebp + ecx*4 + 0x10], xmm0
imul eax, dword [esp + 0x70]
cmp esi, edx
jg 0x1005b49c
mov edx, dword [esp + 0x54]
sub edx, eax
mov edi, dword [ebx + edx*4]
mov dword [ebp + ecx*4 + 0x20], edi
jmp 0x1005b4b2
mov edx, dword [esp + 0x50]
lea edi, [edx + eax]
pxor xmm0, xmm0
subss xmm0, dword [ebx + edi*4]
movss dword [ebp + ecx*4 + 0x20], xmm0
mov edx, dword [esp + 0x68]
cmp esi, edx
jg 0x1005b4c9
add eax, dword [esp + 0x58]
pxor xmm0, xmm0
subss xmm0, dword [ebx + eax*4]
jmp 0x1005b4d8
neg eax
add eax, dword [esp + 0x4c]
pxor xmm0, xmm0
subss xmm0, dword [ebx + eax*4]
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x68]
movss dword [ebp + ecx*4 + 0x30], xmm0
lea edx, [edx + eax]
cmp edx, edi
jg 0x1005b50c
mov edi, dword [esp + 0x48]
mov eax, ecx
imul eax, dword [esp + 0x44]
sub edi, eax
movss xmm0, dword [ebx + edi*4]
mov dword [esp + 0x60], eax
jmp 0x1005b546
mov edi, dword [esp + 0x64]
mov eax, ecx
imul eax, dword [esp + 0x44]
cmp edx, edi
mov dword [esp + 0x60], eax
jg 0x1005b535
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x60]
lea eax, [eax + edi]
pxor xmm0, xmm0
subss xmm0, dword [ebx + eax*4]
jmp 0x1005b546
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 0x60]
pxor xmm0, xmm0
subss xmm0, dword [ebx + eax*4]
mov eax, dword [esp + 0x68]
movss dword [ebp + ecx*4 + 0x40], xmm0
cmp edx, eax
jg 0x1005b567
mov eax, dword [esp + 0x60]
add eax, dword [esp + 0x5c]
pxor xmm0, xmm0
subss xmm0, dword [ebx + eax*4]
jmp 0x1005b591
mov eax, dword [esp + 0x64]
cmp edx, eax
jg 0x1005b584
mov eax, dword [esp + 0x60]
neg eax
add eax, dword [esp + 0x1c]
pxor xmm0, xmm0
subss xmm0, dword [ebx + eax*4]
jmp 0x1005b591
mov eax, dword [esp + 0x60]
add eax, dword [esp + 0x18]
movss xmm0, dword [ebx + eax*4]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x74]
movss dword [ebp + ecx*4 + 0x50], xmm0
lea edi, [eax + edx*4]
add esi, 2
add dword [esp + 0x78], edx
mov dword [esp + 0x74], edi
add dword [esp + 0x70], 2
add ecx, 1
add dword [esp + 0x7c], 3
cmp ecx, 4
jb 0x1005b458
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add dword [esp + 0x20], 4
add ebp, 0x60
add dword [esp + 0x84], 0xc
add eax, 1
mov dword [esp + 0x2c], eax
add dword [esp + 0x24], 8
cmp eax, edx
jl 0x1005b3ab
mov ebx, dword [esp + 8]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 4]
mov eax, dword [esp + 0xc]
add ebp, 2
add ebx, 1
cmp ebx, eax
jb 0x1005b2f6
mov edi, dword [esp]
mov eax, edi
add esp, 0x88
pop ebx
pop ebp
pop esi
pop edi
ret