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

Disassembly:
sub esp, 0x34
mov ecx, dword [esp + 0x3c]
fldz
mov eax, dword [esp + 0x38]
fstp dword [esp]
cmp eax, ecx
mov dword [esp + 0x24], ecx
jg 0x100a96cc
mov dword [esp + 0x24], eax
cmp dword [esp + 0x54], 0
jne 0x100a96d7
mov dword [esp + 0x5c], eax
test ecx, ecx
push ebx
push ebp
push esi
push edi
jle 0x100a9708
mov edi, dword [esp + 0x6c]
mov ebp, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
add edi, edi
add ebp, ebp
add edi, edi
add ebp, ebp
mov ebx, ecx
push edi
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
add esi, ebp
sub ebx, 1
jne 0x100a96f5
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x50]
xor edx, edx
cmp esi, 4
jl 0x100a9764
lea ecx, [esi - 4]
shr ecx, 2
add ecx, 1
lea eax, [edi + 8]
lea edx, [ecx*4]
lea ebx, [ebx]
fld dword [eax - 8]
add eax, 0x10
sub ecx, 1
fadd dword [esp + 0x10]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fadd dword [eax - 0x14]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fadd dword [eax - 0x10]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fadd dword [eax - 0xc]
fstp dword [esp + 0x10]
jne 0x100a9730
cmp edx, esi
jge 0x100a977a
fld dword [edi + edx*4]
add edx, 1
cmp edx, esi
fadd dword [esp + 0x10]
fstp dword [esp + 0x10]
jl 0x100a9768
test esi, esi
fld dword [esp + 0x10]
fmul qword [0x100cdf88]
mov dword [esp + 0x30], 0
fstp dword [esp + 0x10]
jle 0x100a9af7
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x60]
lea ecx, [eax*4]
lea eax, [edx*4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3c], ecx
lea ecx, [eax + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x5c]
lea edx, [ecx + 8]
sub ecx, dword [esp + 0x70]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x64]
sub eax, ecx
mov dword [esp + 0x14], eax
mov eax, ecx
sub eax, dword [esp + 0x78]
mov dword [esp + 0x38], eax
jmp 0x100a97f4
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x30]
fld dword [edi + eax*4]
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x100a9ac0
fld1
mov edi, dword [esp + 0x6c]
cmp edi, 1
fdivrp st(1)
fst qword [esp + 0x28]
jne 0x100a9bbd
mov edi, dword [esp + 0x64]
fldz
test edi, edi
je 0x100a99be
cmp dword [esp + 0x68], 1
jne 0x100a990c
mov ebp, dword [esp + 0x48]
lea esi, [ebp - 4]
xor edx, edx
test esi, esi
jl 0x100a988d
mov ecx, dword [esp + 0x18]
lea ebx, [esi + 4]
mov esi, dword [esp + 0x14]
shr ebx, 2
lea eax, [edi + 4]
lea edx, [ebx*4]
fld dword [eax - 4]
add eax, 0x10
fmul dword [ecx - 0xc]
add ecx, 0x10
sub ebx, 1
fld dword [esi + eax - 0x10]
fmul dword [eax - 0x10]
faddp st(1)
fld dword [eax - 0xc]
fmul dword [ecx - 0x14]
faddp st(1)
fld dword [eax - 8]
fmul dword [ecx - 0x10]
faddp st(1)
faddp st(1)
jne 0x100a985f
jmp 0x100a9891
mov esi, dword [esp + 0x14]
mov ecx, ebp
sub ecx, edx
cmp ecx, 4
jl 0x100a98e2
mov eax, dword [esp + 0x54]
mov ecx, ebp
sub ecx, edx
sub ecx, 4
shr ecx, 2
lea ebx, [eax + edx*4 + 0xc]
add ecx, 1
lea eax, [edi + edx*4 + 4]
lea edx, [edx + ecx*4]
fld dword [eax - 4]
add eax, 0x10
fmul dword [ebx - 0xc]
add ebx, 0x10
sub ecx, 1
faddp st(1)
fld dword [eax + esi - 0x10]
fmul dword [eax - 0x10]
faddp st(1)
fld dword [eax - 0xc]
fmul dword [ebx - 0x14]
faddp st(1)
fld dword [eax - 8]
fmul dword [ebx - 0x10]
faddp st(1)
jne 0x100a98b6
cmp edx, ebp
jge 0x100a99c6
mov ecx, edi
lea eax, [ecx + edx*4]
mov ecx, ebp
sub ecx, edx
mov edx, dword [esp + 0x14]
fld dword [eax + edx]
add eax, 4
sub ecx, 1
fmul dword [eax - 4]
faddp st(1)
jne 0x100a98f7
jmp 0x100a99c6
xor ebx, ebx
cmp dword [esp + 0x48], 4
jl 0x100a9989
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x18]
mov esi, edi
lea edi, [edx + edx*2]
lea edi, [esi + edi*4]
mov dword [esp + 0x28], edi
lea edi, [esi + edx*8]
mov eax, edx
mov dword [esp + 0x24], edi
lea edi, [esi + edx*4]
mov edx, dword [esp + 0x48]
add edx, 0xfffffffc
shr edx, 2
shl eax, 4
add ecx, 0xfffffffc
add edx, 1
lea ebx, [edx*4]
fld dword [ecx - 8]
mov ebp, dword [esp + 0x24]
fmul dword [esi]
add dword [esp + 0x24], eax
add esi, eax
add ecx, 0x10
faddp st(1)
fld dword [ecx - 0x14]
fmul dword [edi]
add edi, eax
faddp st(1)
fld dword [ebp]
mov ebp, dword [esp + 0x28]
fmul dword [ecx - 0x10]
add dword [esp + 0x28], eax
sub edx, 1
faddp st(1)
fld dword [ecx - 0xc]
fmul dword [ebp]
faddp st(1)
jne 0x100a994f
mov esi, dword [esp + 0x48]
cmp ebx, esi
jge 0x100a99c6
mov eax, dword [esp + 0x68]
mov edx, ebx
imul edx, eax
lea ecx, [eax*4]
mov eax, dword [esp + 0x64]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x54]
fld dword [edx + ebx*4]
add ebx, 1
fmul dword [eax]
add eax, ecx
cmp ebx, esi
faddp st(1)
jl 0x100a99ac
jmp 0x100a99c6
mov ecx, dword [esp + 0x54]
fstp st(0)
fld dword [ecx]
cmp dword [esp + 0x74], 1
fmulp st(1)
jne 0x100a9aff
mov edi, dword [esp + 0x4c]
lea esi, [edi - 4]
xor edx, edx
test esi, esi
jl 0x100a9a35
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
lea ebx, [esi + 4]
mov esi, dword [esp + 0x1c]
add eax, 4
shr ebx, 2
lea edx, [ebx*4]
fld dword [eax + esi]
add eax, 0x10
fmul st(1)
add ecx, 0x10
sub ebx, 1
fadd dword [eax - 0x10]
fld dword [ecx - 0x18]
fmul st(2)
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fstp dword [eax - 0x10]
fld dword [ecx - 0xc]
fmul st(1)
fadd dword [eax - 8]
fld dword [ecx - 0x10]
fmul st(2)
fadd dword [eax - 0xc]
fstp dword [eax - 0xc]
fstp dword [eax - 8]
jne 0x100a99fc
jmp 0x100a9a39
mov esi, dword [esp + 0x1c]
mov eax, edi
sub eax, edx
cmp eax, 4
jl 0x100a9a9a
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
lea ebx, [ecx + edx*4 + 0xc]
mov ecx, edi
sub ecx, edx
sub ecx, 4
shr ecx, 2
add ecx, 1
lea eax, [eax + edx*4 + 4]
lea edx, [edx + ecx*4]
fld dword [ebx - 0xc]
add eax, 0x10
fmul st(1)
add ebx, 0x10
sub ecx, 1
fadd dword [eax - 0x14]
fstp dword [eax - 0x14]
fld dword [esi + eax - 0x10]
fmul st(1)
fadd dword [eax - 0x10]
fstp dword [eax - 0x10]
fld dword [ebx - 0x14]
fmul st(1)
fadd dword [eax - 0xc]
fstp dword [eax - 0xc]
fld dword [ebx - 0x10]
fmul st(1)
fadd dword [eax - 8]
fstp dword [eax - 8]
jne 0x100a9a62
cmp edx, edi
jge 0x100a9ac0
mov ecx, dword [esp + 0x70]
lea eax, [ecx + edx*4]
mov ecx, edi
sub ecx, edx
mov edx, dword [esp + 0x1c]
fld dword [eax + edx]
add eax, 4
sub ecx, 1
fmul st(1)
fadd dword [eax - 4]
fstp dword [eax - 4]
jne 0x100a9aad
fstp st(0)
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add dword [esp + 0x54], eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
add dword [esp + 0x5c], eax
add dword [esp + 0x1c], eax
add dword [esp + 0x20], eax
add ecx, 1
cmp ecx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
jl 0x100a97f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
xor eax, eax
cmp dword [esp + 0x4c], 4
jl 0x100a9b7f
mov edx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
lea edi, [edx + edx*2]
mov eax, edx
lea edi, [esi + edi*4]
lea ebx, [esi + edx*8]
mov dword [esp + 0x28], edi
lea edi, [esi + edx*4]
mov edx, dword [esp + 0x4c]
add edx, 0xfffffffc
shr edx, 2
shl eax, 4
add edx, 1
lea ebp, [edx*4]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x28]
fld dword [ecx - 8]
add ecx, 0x10
fmul st(1)
fadd dword [esi]
fstp dword [esi]
add esi, eax
fld dword [ecx - 0x14]
fmul st(1)
fadd dword [edi]
fstp dword [edi]
add edi, eax
fld dword [ecx - 0x10]
fmul st(1)
fadd dword [ebx]
fstp dword [ebx]
add ebx, eax
fld dword [ecx - 0xc]
fmul st(1)
fadd dword [ebp]
fstp dword [ebp]
add ebp, eax
sub edx, 1
jne 0x100a9b45
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x4c]
cmp eax, edi
jge 0x100a9ac0
mov ecx, dword [esp + 0x74]
mov esi, eax
imul esi, ecx
lea edx, [ecx*4]
mov ecx, dword [esp + 0x70]
lea ecx, [ecx + esi*4]
mov esi, dword [esp + 0x5c]
fld dword [esi + eax*4]
add eax, 1
fmul st(1)
fadd dword [ecx]
fstp dword [ecx]
add ecx, edx
cmp eax, edi
jl 0x100a9ba6
jmp 0x100a9ac0
mov esi, dword [esp + 0x64]
test esi, esi
mov ebp, dword [esp + 0x78]
je 0x100a9c5c
lea edx, [edi*4]
fstp st(0)
push edx
push 0
push ebp
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x74]
push 0
push eax
push esi
push edi
push ecx
mov eax, ebp
call fcn.100a8cd0
fld qword [esp + 0x48]
add esp, 0x20
xor ecx, ecx
cmp edi, 4
jl 0x100a9c41
lea edx, [edi - 4]
shr edx, 2
add edx, 1
lea eax, [ebp + 8]
lea ecx, [edx*4]
fld dword [eax - 8]
add eax, 0x10
sub edx, 1
fmul st(1)
fstp dword [eax - 0x18]
fld dword [eax - 0x14]
fmul st(1)
fstp dword [eax - 0x14]
fld dword [eax - 0x10]
fmul st(1)
fstp dword [eax - 0x10]
fld dword [eax - 0xc]
fmul st(1)
fstp dword [eax - 0xc]
jne 0x100a9c19
cmp ecx, edi
jge 0x100a9cd6
fld dword [ebp + ecx*4]
add ecx, 1
cmp ecx, edi
fmul st(1)
fstp dword [ebp + ecx*4 - 4]
jl 0x100a9c49
jmp 0x100a9cd6
xor ebx, ebx
cmp edi, 4
jl 0x100a9cb0
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esi, ecx
lea ecx, [edi - 4]
shr ecx, 2
add ecx, 1
lea eax, [ebp + 4]
lea ebx, [ecx*4]
fld dword [edx - 0xc]
add eax, 0x10
fmul st(1)
add edx, 0x10
sub ecx, 1
fstp dword [eax - 0x14]
fld dword [esi + eax - 0x10]
fmul st(1)
fstp dword [eax - 0x10]
fld dword [edx - 0x14]
fmul st(1)
fstp dword [eax - 0xc]
fld dword [edx - 0x10]
fmul st(1)
fstp dword [eax - 8]
jne 0x100a9c84
cmp ebx, edi
jge 0x100a9cd6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x38]
add edx, ecx
mov ecx, edi
lea eax, [ebp + ebx*4]
sub ecx, ebx
fld dword [edx + eax]
add eax, 4
sub ecx, 1
fmul st(1)
fstp dword [eax - 4]
jne 0x100a9cc6
mov edx, dword [esp + 0x74]
fstp st(0)
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x78]
push ebp
push edi
push ecx
xor edx, edx
call fcn.100a8cd0
add esp, 0x14
jmp 0x100a9ac2