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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x3b74
call fcn.1007d430
mov eax, dword [0x1008a2c0]
xor eax, esp
mov dword [esp + 0x3b70], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 0x1c]
fld qword [0x1007e250]
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x14], eax
lea eax, [esp + 0xf8]
mov dword [esp + 0x9c], eax
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x978]
mov dword [esp + 0xbc], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x10]
shr eax, 1
mov dword [esp + 0x10], edx
mov dword [esp + 0xd8], eax
mov eax, dword [ecx + 0x10]
lea edx, [esp + 0x178]
mov dword [esp + 0x8c], ecx
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x70], edx
mov edx, dword [esi + 0xc]
shr eax, 1
xor ebx, ebx
mov dword [esp + 0xcc], ecx
mov ecx, dword [ebp + 0x24]
mov edi, dword [ebp + 0x18]
mov dword [esp + 0xac], edx
mov edx, dword [esi + 4]
mov dword [esp + 0xdc], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0xf4], eax
cmp ecx, 0x1e
jle 0x10059461
fstp st(0)
sub ecx, 0x1e
fld qword [0x1007e278]
mov edx, 1
imul edi, dword [ebp + 0x14]
shl edx, cl
mov dword [esp + 0x54], edx
fild dword [esp + 0x54]
fdivp st(1)
fst qword [esp + 0xe8]
cmp edi, 0x100
jle 0x100594aa
lea eax, [edi*8]
fstp st(0)
push eax
call sub.MSVCR100.dll_malloc
add esp, 4
mov dword [esp + 0x70], eax
cmp eax, ebx
je 0x100595cc
fld qword [esp + 0xe8]
xor ebx, ebx
cmp edi, 4
jl 0x100594f5
mov ecx, dword [esp + 0x70]
mov eax, dword [ebp + 0x10]
lea edx, [edi - 4]
shr edx, 2
add ecx, 0x10
add eax, 8
inc edx
lea ebx, [edx*4]
fild dword [eax - 8]
add eax, 0x10
add ecx, 0x20
dec edx
fmul st(1)
fstp qword [ecx - 0x30]
fild dword [eax - 0x14]
fmul st(1)
fstp qword [ecx - 0x28]
fild dword [eax - 0x10]
fmul st(1)
fstp qword [ecx - 0x20]
fild dword [eax - 0xc]
fmul st(1)
fstp qword [ecx - 0x18]
jne 0x100594cc
cmp ebx, edi
jge 0x1005950e
mov ecx, dword [esp + 0x70]
mov eax, dword [ebp + 0x10]
fild dword [eax + ebx*4]
inc ebx
fmul st(1)
fstp qword [ecx + ebx*8 - 8]
cmp ebx, edi
jl 0x10059500
cmp dword [ebp + 0x14], 1
fstp st(0)
jne 0x10059565
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x94]
push edi
push esi
call fcn.100589b0
mov esi, eax
lea eax, [esp + 0x188]
add esp, 0x10
cmp edi, eax
je 0x1005954e
push edi
call sub.MSVCR100.dll_free
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b70]
xor ecx, esp
call fcn.1007d356
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x5c]
lea ebx, [edi + 3]
imul ebx, esi
cmp ebx, 0x640
jg 0x10059580
cmp edi, 0xf
jle 0x100595f0
mov ecx, edi
add ecx, ebx
lea edx, [ecx*8 + 8]
push edx
call sub.MSVCR100.dll_malloc
add esp, 4
mov dword [esp + 0xbc], eax
test eax, eax
jne 0x100595e6
lea eax, [esp + 0x978]
test eax, eax
je 0x100595b4
push 0
call sub.MSVCR100.dll_free
add esp, 4
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x178]
cmp eax, ecx
je 0x100595cc
push eax
call sub.MSVCR100.dll_free
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3b70]
xor ecx, esp
call fcn.1007d356
mov esp, ebp
pop ebp
ret
lea edx, [eax + ebx*8]
mov dword [esp + 0x9c], edx
mov ecx, dword [esp + 0x9c]
lea edx, [edi + 1]
xor eax, eax
test edx, edx
jle 0x1005961c
mov edi, dword [esp + 0xbc]
lea ebx, [esi*8]
mov dword [ecx + eax*4], edi
inc eax
add edi, ebx
cmp eax, edx
jl 0x1005960e
mov edi, dword [esp + 0x30]
xor eax, eax
test edx, edx
jle 0x10059637
lea edi, [ecx + edi*4 + 4]
mov ebx, dword [ecx + eax*4]
mov dword [edi], ebx
inc eax
add edi, 4
cmp eax, edx
jl 0x10059626
mov edi, dword [esp + 0x30]
mov eax, dword [ecx + edi*4]
lea ebx, [eax + esi*8]
mov ecx, esi
and ecx, 0xfffffffe
lea edx, [ecx + esi*2]
lea eax, [ebx + edx*4]
mov ecx, 1
sub ecx, dword [ebp + 0x14]
mov edx, 1
add esi, ecx
mov ecx, dword [esp + 0x14]
sub edx, edi
add dword [esp + 0xac], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xf0], eax
imul ecx, edx
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xdc]
add eax, ecx
mov ecx, dword [esp + 0xcc]
lea eax, [ecx + eax*2]
mov dword [esp + 0x5c], esi
mov dword [esp + 0xcc], eax
mov dword [esp + 0xa8], 0
test edx, edx
jle 0x1005ac61
jmp 0x100596b0
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0xa8]
mov edx, 1
dec ecx
shl edx, cl
test dword [ebp + 0x28], edx
je 0x1005ac48
cmp dword [esp + 0x30], 0
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0xcc]
lea edi, [ecx + eax*2]
lea eax, [edx + eax*2]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x38], 0
jle 0x10059848
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x44]
lea eax, [edx + ecx - 1]
mov ecx, dword [esp + 0xd8]
lea edx, [ecx + ecx]
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edx
jmp 0x10059730
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x9c]
mov edx, dword [eax + ecx*4]
xor ecx, ecx
cmp dword [esp + 0x28], 4
mov dword [esp + 0x10], edx
jl 0x100597fb
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi*2]
lea ecx, [edi + ecx*2]
mov dword [esp + 0x34], ecx
lea ecx, [edi + esi*4]
mov dword [esp + 0x3c], ecx
lea ecx, [edi + esi*2]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x28]
add ecx, 0xfffffffc
shr ecx, 2
add eax, 0x10
inc ecx
mov dword [esp + 0x74], edi
lea edi, [ecx*4]
lea edx, [esi*8]
mov dword [esp + 0x8c], edi
mov edi, dword [esp + 0x74]
movzx edi, word [edi]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x58]
add dword [esp + 0x74], edx
fild dword [esp + 0x54]
add dword [esp + 0x58], edx
add eax, 0x20
fstp qword [eax - 0x30]
movzx edi, word [edi]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x3c]
add dword [esp + 0x3c], edx
fild dword [esp + 0x54]
fstp qword [eax - 0x28]
movzx edi, word [edi]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x34]
add dword [esp + 0x34], edx
dec ecx
fild dword [esp + 0x54]
fstp qword [eax - 0x20]
movzx edi, word [edi]
mov dword [esp + 0x54], edi
fild dword [esp + 0x54]
fstp qword [eax - 0x18]
jne 0x10059792
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x8c]
cmp ecx, dword [esp + 0x28]
jge 0x1005982d
mov edx, ecx
imul edx, esi
lea edx, [edi + edx*2]
lea esp, [esp]
movzx eax, word [edx]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
inc ecx
fild dword [esp + 0x54]
lea edx, [edx + esi*2]
fstp qword [eax + ecx*8 - 8]
cmp ecx, dword [esp + 0x28]
jl 0x10059810
mov eax, dword [esp + 0x38]
add edi, dword [esp + 0x14]
inc eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x30]
jl 0x10059730
xor esi, esi
mov dword [esp + 0x74], esi
cmp dword [esp + 0x5c], esi
jle 0x10059868
mov esi, dword [esp + 0x5c]
mov ecx, esi
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
cmp dword [esp + 0xac], 0
mov dword [esp + 0x54], 0
jle 0x1005ac48
mov edi, edi
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x74]
lea eax, [ecx + edx*4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x8c], eax
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x48], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x38], 0
test ecx, ecx
jle 0x1005a08e
jmp 0x100598c0
cmp dword [ebp + 0x14], 0
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x38]
mov edx, dword [eax + ecx*4]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x3c], 0
jle 0x1005a07b
mov edi, dword [esp + 0x5c]
add edi, 0xfffffffe
mov dword [esp + 0x40], edi
nop
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
lea ecx, [eax + edx*8]
mov eax, dword [ebp + 0x14]
sub eax, edx
cmp eax, 0xe
jle 0x1005990c
mov eax, 7
jmp 0x10059916
cmp eax, 7
jle 0x10059916
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x60]
fld qword [ecx]
fld qword [ecx + 8]
mov esi, dword [esp + 0x58]
fld qword [ecx + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x64]
fld qword [ecx + 0x18]
fld qword [ecx + 0x20]
mov dword [esp + 0x2c], edx
fstp qword [esp + 0xa0]
lea edx, [ecx + 0x10]
fld qword [ecx + 0x28]
add dword [esp + 0x3c], eax
mov dword [esp + 0x50], edx
fstp qword [esp + 0x18]
fld qword [esi]
lea edx, [ecx + 0x18]
fld qword [esi + 8]
mov dword [esp + 0x34], edx
lea edx, [ecx + 0x20]
fst qword [esp + 0xd0]
fld qword [esi + 0x10]
mov dword [esp + 0x10], edx
lea edx, [ecx + 0x28]
fst qword [esp + 0x78]
fld qword [esi + 0x18]
fstp qword [esp + 0x80]
fld qword [esi + 0x20]
fstp qword [esp + 0x90]
fld qword [esi + 0x28]
fstp qword [esp + 0xb0]
fld qword [esi + 0x30]
lea esi, [esi + eax*8]
fstp qword [esp + 0xe0]
mov dword [esp + 0x58], esi
cmp eax, 7
jne 0x10059d42
mov eax, dword [esp + 0x30]
fstp st(0)
dec eax
cmp dword [esp + 0x38], eax
jl 0x10059c2c
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x3c], eax
jl 0x10059c2c
xor esi, esi
test edi, edi
js 0x1005aa62
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
lea eax, [ebx + 8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
sub eax, ebx
add edi, edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
add edi, edx
add ecx, 0x38
sub eax, edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x50], eax
jmp 0x10059a20
fld qword [esp + 0xd0]
mov eax, dword [esp + 0x50]
fxch st(3)
fxch st(5)
fxch st(2)
fxch st(4)
fxch st(1)
fxch st(3)
movzx eax, word [eax + edi]
fxch st(5)
fstp qword [esp + 0xc0]
cdq
fxch st(3)
fstp qword [esp + 0x68]
mov edx, dword [esp + 0x24]
fld qword [esp + 0xa0]
mov edi, eax
movzx eax, word [edx]
fld qword [esp + 0x18]
fld qword [ecx - 8]
fst qword [esp + 0xa0]
fld qword [ecx]
cdq
fstp qword [esp + 0x18]
xor ecx, ecx
or ecx, eax
mov eax, dword [esp + 0xf0]
mov dword [eax + esi*4], ecx
mov ecx, dword [esp + 0x34]
or edi, edx
mov edx, dword [esp + 0x28]
mov dword [eax + esi*4 + 4], edi
fld qword [eax + esi*4]
mov eax, dword [esp + 0x48]
fstp qword [esp + 0xe8]
fild dword [esp + 0xe8]
fstp qword [eax + esi*8]
fild dword [esp + 0xec]
fstp qword [ecx + edx]
fld qword [esp + 0x68]
fmulp st(7)
fld qword [esp + 0xc0]
fmul st(6)
faddp st(7)
fld qword [esp + 0x78]
fmul st(5)
faddp st(7)
fld qword [esp + 0x80]
fmul st(4)
faddp st(7)
fld qword [esp + 0x90]
fmul st(3)
faddp st(7)
fld qword [esp + 0xb0]
fmul st(2)
faddp st(7)
fld qword [esp + 0xe0]
fmul st(1)
faddp st(7)
fxch st(6)
fadd qword [edx - 8]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10059aff
fstp st(0)
mov edi, 0x80000000
jmp 0x10059b2f
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10059b17
fstp st(0)
mov edi, 0x7fffffff
jmp 0x10059b2f
fstp st(6)
fxch st(5)
call fcn.1007d380
fld qword [esp + 0xa0]
mov edx, dword [esp + 0x28]
fxch st(5)
mov edi, eax
fld qword [esp + 0x68]
fmul st(5)
fld qword [esp + 0xd0]
fmul st(5)
faddp st(1)
fld qword [esp + 0x78]
fmul st(4)
faddp st(1)
fld qword [esp + 0x80]
fmul st(3)
faddp st(1)
fld qword [esp + 0x90]
fmul st(2)
faddp st(1)
fld qword [esp + 0xb0]
fmulp st(7)
faddp st(6)
fld qword [esp + 0xe0]
fmul qword [esp + 0x18]
faddp st(6)
fxch st(5)
fadd qword [edx]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10059b98
fstp st(0)
mov eax, 0x80000000
jmp 0x10059bb9
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10059bb0
fstp st(0)
mov eax, 0x7fffffff
jmp 0x10059bb9
call fcn.1007d380
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
fldz
sar edi, 0x10
sar eax, 0x10
xor edi, 0x8000
mov word [ecx], di
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, 0x8000
mov word [edi], ax
fst qword [edx - 8]
mov eax, dword [esp + 0x44]
fstp qword [edx]
add eax, eax
add eax, eax
add dword [esp + 0x24], eax
add dword [esp + 0x2c], eax
add edi, eax
mov eax, dword [esp + 0x5c]
add eax, 0xfffffffe
add esi, 2
add ecx, 0x10
add edx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], eax
cmp esi, eax
jle 0x10059a09
fstp st(2)
mov edi, eax
fstp st(0)
fstp st(0)
fstp st(1)
jmp 0x1005a06c
xor esi, esi
test edi, edi
js 0x1005aa62
fld qword [esp + 0x18]
lea eax, [ecx + 0x38]
mov ecx, dword [esp + 0x40]
jmp 0x10059c58
fld qword [esp + 0xd0]
fxch st(4)
fxch st(6)
fxch st(3)
fxch st(5)
fxch st(1)
fxch st(4)
fxch st(1)
fxch st(6)
add esi, 2
fstp qword [esp + 0xc0]
add eax, 0x10
fxch st(4)
fstp qword [esp + 0x68]
fld qword [esp + 0xa0]
fld qword [eax - 0x18]
fst qword [esp + 0xa0]
fld qword [eax - 0x10]
fstp qword [esp + 0x18]
fld qword [esp + 0x68]
fmulp st(6)
fld qword [esp + 0xc0]
fmul st(3)
faddp st(6)
fld qword [esp + 0x78]
fmul st(5)
faddp st(6)
fld qword [esp + 0x80]
fmul st(4)
faddp st(6)
fld qword [esp + 0x90]
fmul st(2)
faddp st(6)
fld qword [esp + 0xb0]
fmul st(7)
faddp st(6)
fld qword [esp + 0xe0]
fmul st(1)
faddp st(6)
fxch st(5)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fld qword [esp + 0x68]
fmul st(2)
fld qword [esp + 0xd0]
fmul st(5)
faddp st(1)
fld qword [esp + 0x78]
fmul st(4)
faddp st(1)
fld qword [esp + 0x80]
fmul st(2)
faddp st(1)
fld qword [esp + 0x90]
fmul st(7)
faddp st(1)
fld qword [esp + 0xb0]
fmulp st(6)
faddp st(5)
fld qword [esp + 0xe0]
fld qword [esp + 0x18]
fmul st(1), st(0)
fxch st(6)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, ecx
jle 0x10059c43
mov edi, dword [esp + 0x40]
fstp st(4)
fstp st(2)
fstp st(0)
fstp st(1)
fstp st(1)
jmp 0x1005a06c
cmp eax, 6
jne 0x1005a15b
mov eax, dword [esp + 0x30]
fstp st(0)
dec eax
cmp dword [esp + 0x38], eax
jl 0x10059f7d
mov edx, dword [ebp + 0x14]
cmp dword [esp + 0x3c], edx
jl 0x10059f7d
xor esi, esi
test edi, edi
js 0x1005aa62
mov eax, dword [esp + 0x44]
add eax, eax
lea edx, [eax + eax]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x64]
add eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x48]
sub eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x60]
add ecx, 0x30
sub eax, edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], ecx
mov eax, ecx
mov ecx, dword [esp + 0x14]
lea edi, [ebx + 8]
jmp 0x10059dc9
fld qword [esp + 0xd0]
fxch st(3)
fxch st(5)
fxch st(2)
fxch st(4)
fxch st(2)
fxch st(3)
fxch st(1)
fxch st(2)
fxch st(1)
fxch st(5)
fstp qword [esp + 0xc0]
fxch st(3)
fst qword [esp + 0x68]
fld qword [esp + 0xa0]
fld qword [eax - 8]
fld qword [eax]
mov eax, dword [esp + 0x24]
movzx edx, word [eax]
fstp qword [esp + 0xa0]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x50]
fild dword [esp + 0x18]
fstp qword [eax + esi*8]
movzx eax, word [ecx + edx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp qword [edi + ecx]
fxch st(2)
fmul st(6)
fld qword [esp + 0xc0]
fmul st(6)
faddp st(1)
fld qword [esp + 0x78]
fmul st(5)
faddp st(1)
fld qword [esp + 0x80]
fmul st(4)
faddp st(1)
fld qword [esp + 0x90]
fmul st(2)
faddp st(1)
fld qword [esp + 0xb0]
fmul st(3)
faddp st(1)
fadd qword [edi - 8]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10059e75
mov ecx, 0x80000000
fstp st(0)
mov dword [esp + 0x18], ecx
jmp 0x10059e9c
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10059e91
mov ecx, 0x7fffffff
fstp st(0)
mov dword [esp + 0x18], ecx
jmp 0x10059e9c
call fcn.1007d380
mov dword [esp + 0x18], eax
mov ecx, eax
fld qword [esp + 0x68]
fmul st(5)
fxch st(6)
fmul st(4)
faddp st(6)
fld qword [esp + 0x78]
fmul st(3)
faddp st(6)
fld qword [esp + 0x80]
fmul st(1)
faddp st(6)
fld qword [esp + 0x90]
fmul st(2)
faddp st(6)
fld qword [esp + 0xb0]
fmul qword [esp + 0xa0]
faddp st(6)
fxch st(5)
fadd qword [edi]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x10059ef8
fstp st(0)
mov eax, 0x80000000
jmp 0x10059f19
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x10059f10
fstp st(0)
mov eax, 0x7fffffff
jmp 0x10059f19
call fcn.1007d380
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
fldz
sar ecx, 0x10
xor ecx, 0x8000
sar eax, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x14]
xor eax, 0x8000
mov word [ecx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x28]
fstp qword [edi]
add dword [esp + 0x24], eax
add dword [esp + 0x2c], eax
add ecx, eax
mov eax, dword [esp + 0x10]
add esi, 2
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp esi, dword [esp + 0x40]
jle 0x10059db0
mov edi, dword [esp + 0x40]
fstp st(2)
fstp st(0)
fstp st(2)
fstp st(1)
jmp 0x1005a06c
xor esi, esi
test edi, edi
js 0x1005aa62
fld qword [esp + 0xa0]
lea eax, [ecx + 0x30]
mov ecx, dword [esp + 0x40]
jmp 0x10059fae
fld qword [esp + 0xd0]
fxch st(4)
fxch st(6)
fxch st(3)
fxch st(5)
fxch st(3)
fxch st(4)
fxch st(1)
fxch st(3)
fxch st(6)
add esi, 2
fstp qword [esp + 0xc0]
add eax, 0x10
fxch st(4)
fst qword [esp + 0x68]
fld qword [eax - 0x18]
fld qword [eax - 0x10]
fstp qword [esp + 0xa0]
fxch st(1)
fmul st(5)
fld qword [esp + 0xc0]
fmul st(3)
faddp st(1)
fld qword [esp + 0x78]
fmul st(5)
faddp st(1)
fld qword [esp + 0x80]
fmul st(4)
faddp st(1)
fld qword [esp + 0x90]
fmul st(7)
faddp st(1)
fld qword [esp + 0xb0]
fmul st(2)
faddp st(1)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fld qword [esp + 0x68]
fmul st(2)
fxch st(5)
fmul st(4)
faddp st(5)
fld qword [esp + 0x78]
fmul st(3)
faddp st(5)
fld qword [esp + 0x80]
fmul st(6)
faddp st(5)
fld qword [esp + 0x90]
fmul st(1)
faddp st(5)
fld qword [esp + 0xb0]
fld qword [esp + 0xa0]
fmul st(1), st(0)
fxch st(6)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, ecx
jle 0x10059f97
fstp st(4)
fstp st(2)
fstp st(0)
mov edi, dword [esp + 0x40]
fstp st(2)
fstp st(0)
mov eax, dword [ebp + 0x14]
fstp st(0)
cmp dword [esp + 0x3c], eax
jl 0x100598f0
mov eax, dword [esp + 0x38]
inc eax
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x30]
jl 0x100598c0
cmp esi, dword [esp + 0x5c]
jge 0x1005aaec
mov edi, dword [ebp + 0x14]
mov eax, dword [esp + 0x70]
fldz
xor ecx, ecx
mov dword [esp + 0x38], ecx
cmp dword [esp + 0x30], ecx
jle 0x1005a136
mov edx, dword [esp + 0x8c]
mov ecx, dword [edx + ecx*4]
lea edx, [esi*8]
add ecx, edx
xor edx, edx
mov dword [esp + 0x4c], ecx
cmp edi, 4
jl 0x1005a110
add edi, 0xfffffffc
shr edi, 2
add ecx, 0x10
inc edi
lea edx, [edi*4]
fld qword [eax + 8]
add eax, 0x20
fmul qword [ecx - 8]
add ecx, 0x20
dec edi
fld qword [ecx - 0x30]
fmul qword [eax - 0x20]
faddp st(2)
faddp st(1)
fld qword [eax - 0x10]
fmul qword [ecx - 0x20]
faddp st(1)
fld qword [eax - 8]
fmul qword [ecx - 0x18]
faddp st(1)
jne 0x1005a0e0
mov edi, dword [ebp + 0x14]
mov ecx, dword [esp + 0x4c]
cmp edx, edi
jge 0x1005a123
fld qword [ecx + edx*8]
inc edx
fmul qword [eax]
add eax, 8
faddp st(1)
cmp edx, edi
jl 0x1005a114
mov ecx, dword [esp + 0x38]
inc ecx
mov dword [esp + 0x38], ecx
cmp ecx, dword [esp + 0x30]
jl 0x1005a0b1
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1005aa8b
fstp st(0)
mov eax, 0x80000000
jmp 0x1005aaa8
cmp eax, 5
jne 0x1005a3f6
mov eax, dword [esp + 0x30]
fstp st(0)
dec eax
cmp dword [esp + 0x38], eax
jl 0x1005a34d
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x3c], eax
jl 0x1005a34d
xor esi, esi
test edi, edi
js 0x1005aa62
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
add ecx, ecx
lea eax, [ecx + ecx]
sub edx, ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x60]
add ecx, eax
sub edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
lea edi, [ebx + 8]
mov dword [esp + 0x50], edx
jmp 0x1005a1d0
mov edx, dword [esp + 0x50]
fxch st(3)
fxch st(5)
fxch st(2)
fxch st(4)
fxch st(4)
fstp qword [esp + 0x68]
fld qword [eax - 8]
fld qword [eax]
mov eax, dword [esp + 0x24]
movzx eax, word [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
fild dword [esp + 0x18]
fstp qword [eax + esi*8]
movzx ecx, word [ecx + edx]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fstp qword [edi + edx]
fld qword [esp + 0x68]
fmul st(6)
fxch st(7)
fmul st(3)
faddp st(7)
fld qword [esp + 0x78]
fmul st(5)
faddp st(7)
fld qword [esp + 0x80]
fmul st(4)
faddp st(7)
fld qword [esp + 0x90]
fmul st(2)
faddp st(7)
fxch st(6)
fadd qword [edi - 8]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1005a255
mov ecx, 0x80000000
fstp st(0)
mov dword [esp + 0x18], ecx
jmp 0x1005a27c
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1005a271
mov ecx, 0x7fffffff
fstp st(0)
mov dword [esp + 0x18], ecx
jmp 0x1005a27c
call fcn.1007d380
mov dword [esp + 0x18], eax
mov ecx, eax
fld qword [esp + 0x68]
fmul st(2)
fld st(5)
fmul st(5)
faddp st(1)
fld qword [esp + 0x78]
fmul st(4)
faddp st(1)
fld qword [esp + 0x80]
fmul st(2)
faddp st(1)
fld qword [esp + 0x90]
fmul st(7)
faddp st(1)
fadd qword [edi]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1005a2c6
fstp st(0)
mov eax, 0x80000000
jmp 0x1005a2e7
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1005a2de
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1005a2e7
call fcn.1007d380
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
fldz
sar ecx, 0x10
xor ecx, 0x8000
sar eax, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x14]
xor eax, 0x8000
mov word [ecx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x28]
fstp qword [edi]
add dword [esp + 0x24], eax
add dword [esp + 0x2c], eax
add ecx, eax
mov eax, dword [esp + 0x10]
add esi, 2
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp esi, dword [esp + 0x40]
jle 0x1005a1c4
mov edi, dword [esp + 0x40]
fstp st(3)
fstp st(1)
fstp st(1)
fstp st(2)
fstp st(1)
jmp 0x1005a06c
xor esi, esi
test edi, edi
js 0x1005aa62
mov eax, edx
jmp 0x1005a369
fxch st(3)
fxch st(5)
fxch st(2)
fxch st(4)
fxch st(2)
fxch st(3)
fxch st(2)
fxch st(4)
add esi, 2
fst qword [esp + 0x68]
add eax, 0x10
fld qword [eax - 0x18]
fld qword [eax - 0x10]
fxch st(2)
fmul st(6)
fxch st(7)
fmul st(3)
faddp st(7)
fld qword [esp + 0x78]
fmul st(5)
faddp st(7)
fld qword [esp + 0x80]
fmul st(4)
faddp st(7)
fld qword [esp + 0x90]
fmul st(1)
faddp st(7)
fxch st(6)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fld qword [esp + 0x68]
fmul st(2)
fld st(5)
fmul st(5)
faddp st(1)
fld qword [esp + 0x78]
fmul st(4)
faddp st(1)
fld qword [esp + 0x80]
fmul st(7)
faddp st(1)
fld qword [esp + 0x90]
fmul st(2)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, edi
jle 0x1005a35b
fstp st(3)
fstp st(1)
fstp st(3)
fstp st(0)
fstp st(1)
jmp 0x1005a06c
fstp st(3)
cmp eax, 4
jne 0x1005a66b
mov eax, dword [esp + 0x30]
dec eax
cmp dword [esp + 0x38], eax
jl 0x1005a5e6
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x3c], eax
jl 0x1005a5e6
xor esi, esi
test edi, edi
js 0x1005aa6f
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
sub edx, ebx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x60]
add ecx, eax
sub edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
lea edi, [ebx + 8]
mov dword [esp + 0x50], edx
jmp 0x1005a46f
mov edx, dword [esp + 0x50]
fxch st(3)
fxch st(5)
fxch st(3)
fxch st(4)
fxch st(4)
fstp qword [esp + 0x68]
fld qword [eax - 8]
fld qword [eax]
mov eax, dword [esp + 0x24]
movzx eax, word [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
fild dword [esp + 0x18]
fstp qword [eax + esi*8]
movzx ecx, word [edx + ecx]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fstp qword [edx + edi]
fld qword [esp + 0x68]
fmul st(6)
fxch st(7)
fmul st(3)
faddp st(7)
fld st(3)
fmul st(5)
faddp st(7)
fld qword [esp + 0x80]
fmul st(2)
faddp st(7)
fxch st(6)
fadd qword [edi - 8]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1005a4e7
mov ecx, 0x80000000
fstp st(0)
mov dword [esp + 0x18], ecx
jmp 0x1005a518
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1005a503
mov ecx, 0x7fffffff
fstp st(0)
mov dword [esp + 0x18], ecx
jmp 0x1005a518
fstp st(3)
fxch st(2)
call fcn.1007d380
fld qword [esp + 0x78]
mov dword [esp + 0x18], eax
fxch st(2)
mov ecx, eax
fld qword [esp + 0x68]
fmul st(2)
fld st(5)
fmul st(5)
faddp st(1)
fld st(3)
fmul st(2)
faddp st(1)
fld qword [esp + 0x80]
fmul st(7)
faddp st(1)
fadd qword [edi]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1005a555
fstp st(0)
mov eax, 0x80000000
jmp 0x1005a580
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1005a56d
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1005a580
fstp st(3)
fxch st(2)
call fcn.1007d380
fld qword [esp + 0x78]
mov ecx, dword [esp + 0x18]
fxch st(2)
mov edx, dword [esp + 0x2c]
fldz
sar ecx, 0x10
xor ecx, 0x8000
sar eax, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x14]
xor eax, 0x8000
mov word [ecx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x28]
fstp qword [edi]
add dword [esp + 0x24], eax
add dword [esp + 0x2c], eax
add ecx, eax
mov eax, dword [esp + 0x10]
add esi, 2
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp esi, dword [esp + 0x40]
jle 0x1005a463
mov edi, dword [esp + 0x40]
fstp st(2)
fstp st(2)
fstp st(0)
fstp st(2)
fstp st(1)
jmp 0x1005a06c
xor esi, esi
test edi, edi
js 0x1005aa6f
mov eax, dword [esp + 0x10]
jmp 0x1005a5fc
fxch st(3)
fxch st(5)
fxch st(4)
fxch st(4)
add esi, 2
fst qword [esp + 0x68]
add eax, 0x10
fld qword [eax - 0x18]
fld qword [eax - 0x10]
fxch st(2)
fmul st(6)
fxch st(7)
fmul st(3)
faddp st(7)
fld st(3)
fmul st(5)
faddp st(7)
fld qword [esp + 0x80]
fmul st(1)
faddp st(7)
fxch st(6)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fld qword [esp + 0x68]
fmul st(2)
fld st(5)
fmul st(5)
faddp st(1)
fld st(3)
fmul st(7)
faddp st(1)
fld qword [esp + 0x80]
fmul st(2)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, edi
jle 0x1005a5f6
fstp st(2)
fstp st(2)
fstp st(3)
fstp st(2)
fstp st(1)
jmp 0x1005a06c
cmp eax, 3
fstp st(3)
mov eax, dword [esp + 0x30]
jne 0x1005a88f
dec eax
cmp dword [esp + 0x38], eax
jl 0x1005a82f
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x3c], eax
jl 0x1005a82f
xor esi, esi
test edi, edi
js 0x1005aa7e
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
sub edx, ebx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x60]
add ecx, eax
sub edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
lea edi, [ebx + 8]
mov dword [esp + 0x50], edx
jmp 0x1005a6e2
mov edx, dword [esp + 0x50]
fxch st(3)
fxch st(4)
fxch st(3)
fld qword [eax - 8]
fld qword [eax]
mov eax, dword [esp + 0x24]
movzx eax, word [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
fild dword [esp + 0x18]
fstp qword [eax + esi*8]
movzx ecx, word [ecx + edx]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fstp qword [edi + edx]
fld st(5)
fmul st(5)
fxch st(7)
fmul st(3)
faddp st(7)
fld st(3)
fmul st(2)
faddp st(7)
fxch st(6)
fadd qword [edi - 8]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1005a747
mov ecx, 0x80000000
fstp st(0)
mov dword [esp + 0x18], ecx
jmp 0x1005a778
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1005a763
mov ecx, 0x7fffffff
fstp st(0)
mov dword [esp + 0x18], ecx
jmp 0x1005a778
fstp st(3)
fxch st(2)
call fcn.1007d380
fld qword [esp + 0x78]
mov dword [esp + 0x18], eax
fxch st(2)
mov ecx, eax
fxch st(4)
fmul st(1)
fld st(3)
fmul st(5)
faddp st(1)
fld st(2)
fmul st(6)
faddp st(1)
fadd qword [edi]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1005a7a8
fstp st(0)
mov eax, 0x80000000
jmp 0x1005a7d3
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1005a7c0
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1005a7d3
fstp st(2)
fxch st(1)
call fcn.1007d380
fld qword [esp + 0x78]
mov ecx, dword [esp + 0x18]
fxch st(1)
mov edx, dword [esp + 0x2c]
fldz
sar ecx, 0x10
xor ecx, 0x8000
sar eax, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x14]
xor eax, 0x8000
mov word [ecx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x28]
fstp qword [edi]
add dword [esp + 0x24], eax
add dword [esp + 0x2c], eax
add ecx, eax
mov eax, dword [esp + 0x10]
add esi, 2
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp esi, dword [esp + 0x40]
jle 0x1005a6d8
fstp st(1)
fstp st(2)
jmp 0x1005a064
xor esi, esi
test edi, edi
js 0x1005aa7e
mov eax, dword [esp + 0x34]
jmp 0x1005a845
fxch st(3)
fxch st(4)
fxch st(3)
fld qword [eax - 8]
add esi, 2
fld qword [eax]
add eax, 0x10
fld st(5)
fmul st(5)
fxch st(7)
fmul st(3)
faddp st(7)
fld st(3)
fmul st(2)
faddp st(7)
fxch st(6)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fxch st(4)
fmul st(1)
fld st(3)
fmul st(5)
faddp st(1)
fld st(2)
fmul st(6)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, edi
jle 0x1005a83f
fstp st(1)
fstp st(2)
jmp 0x1005a068
dec eax
fstp st(1)
fstp st(2)
cmp dword [esp + 0x38], eax
jl 0x1005aa1c
mov eax, dword [ebp + 0x14]
cmp dword [esp + 0x3c], eax
jl 0x1005aa1c
xor esi, esi
test edi, edi
js 0x1005a068
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
add ecx, ecx
lea edx, [ecx + ecx]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x48]
sub edx, ebx
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x60]
add ecx, eax
sub edx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
lea edi, [ebx + 8]
mov dword [esp + 0x50], edx
jmp 0x1005a8f5
mov edx, dword [esp + 0x50]
fld qword [eax - 8]
fld qword [eax]
mov eax, dword [esp + 0x24]
movzx eax, word [eax]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
fild dword [esp + 0x18]
fstp qword [eax + esi*8]
movzx ecx, word [ecx + edx]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fstp qword [edi + edx]
fld st(1)
fmul st(3)
fxch st(5)
fmul st(4)
faddp st(5)
fxch st(4)
fadd qword [edi - 8]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1005a954
mov ecx, 0x80000000
fstp st(0)
mov dword [esp + 0x18], ecx
jmp 0x1005a97b
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1005a970
mov ecx, 0x7fffffff
fstp st(0)
mov dword [esp + 0x18], ecx
jmp 0x1005a97b
call fcn.1007d380
mov dword [esp + 0x18], eax
mov ecx, eax
fmul st(2)
fld st(1)
fmul st(4)
faddp st(1)
fadd qword [edi]
fsub qword [0x1007e258]
fld qword [0x1007e220]
fcomp st(1)
fnstsw ax
test ah, 1
jne 0x1005a9a3
fstp st(0)
mov eax, 0x80000000
jmp 0x1005a9c4
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1005a9bb
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1005a9c4
call fcn.1007d380
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
fldz
sar ecx, 0x10
xor ecx, 0x8000
sar eax, 0x10
mov word [edx], cx
mov ecx, dword [esp + 0x14]
xor eax, 0x8000
mov word [ecx], ax
fst qword [edi - 8]
mov eax, dword [esp + 0x28]
fstp qword [edi]
add dword [esp + 0x24], eax
add dword [esp + 0x2c], eax
add ecx, eax
mov eax, dword [esp + 0x10]
add esi, 2
add eax, 0x10
add edi, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
cmp esi, dword [esp + 0x40]
jle 0x1005a8f1
jmp 0x1005a064
xor esi, esi
test edi, edi
js 0x1005a068
mov eax, dword [esp + 0x50]
fld qword [eax - 8]
add esi, 2
fld qword [eax]
add eax, 0x10
fld st(1)
fmul st(3)
fxch st(5)
fmul st(4)
faddp st(5)
fxch st(4)
fadd qword [ebx + esi*8 - 0x10]
fstp qword [ebx + esi*8 - 0x10]
fmul st(2)
fld st(1)
fmul st(4)
faddp st(1)
fadd qword [ebx + esi*8 - 8]
fstp qword [ebx + esi*8 - 8]
cmp esi, edi
jle 0x1005aa2a
jmp 0x1005a068
fstp st(5)
fstp st(3)
fstp st(1)
fstp st(0)
jmp 0x1005a06a
fstp st(2)
fstp st(4)
fstp st(2)
fstp st(0)
fstp st(1)
jmp 0x1005a06c
fstp st(1)
fstp st(3)
fstp st(1)
fstp st(1)
jmp 0x1005a06c
fld qword [0x1007e228]
fcomp st(1)
fnstsw ax
test ah, 0x41
jp 0x1005aaa3
fstp st(0)
mov eax, 0x7fffffff
jmp 0x1005aaa8
call fcn.1007d380
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
sar eax, 0x10
xor eax, 0x8000
mov word [edx], ax
movzx eax, word [ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
inc esi
fild dword [esp + 0x4c]
fstp qword [eax + esi*8 - 8]
mov eax, dword [esp + 0x44]
lea ecx, [ecx + eax*2]
add eax, eax
add edx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
cmp esi, dword [esp + 0x5c]
jl 0x1005a09b
mov eax, dword [ebp + 0x14]
dec eax
xor edi, edi
mov dword [esp + 0x3c], eax
cmp eax, 4
jl 0x1005abb5
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
lea eax, [eax + ecx*8]
mov ecx, dword [esp + 0x24]
lea edx, [edi*8]
lea edi, [edi + edi*2]
lea edi, [ecx + edi*2]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x44]
lea ecx, [ecx + edi*4]
mov dword [esp + 0x58], ecx
lea ecx, [edi + edi]
add ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x3c]
add ecx, 0xfffffffc
shr ecx, 2
inc ecx
lea edi, [ecx*4]
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x10]
movzx edi, word [edi]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x14]
add dword [esp + 0x10], edx
fild dword [esp + 0x4c]
add dword [esp + 0x14], edx
add eax, 0x20
fstp qword [eax - 0x20]
movzx edi, word [edi]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x58]
add dword [esp + 0x58], edx
fild dword [esp + 0x4c]
fstp qword [eax - 0x18]
movzx edi, word [edi]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x28]
add dword [esp + 0x28], edx
dec ecx
fild dword [esp + 0x4c]
fstp qword [eax - 0x10]
movzx edi, word [edi]
mov dword [esp + 0x4c], edi
fild dword [esp + 0x4c]
fstp qword [eax - 8]
jne 0x1005ab53
mov edi, dword [esp + 0x38]
mov eax, dword [ebp + 0x14]
dec eax
mov dword [esp + 0x3c], eax
cmp edi, eax
jge 0x1005abfe
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x48]
lea eax, [edi + edx]
mov edx, edi
imul edx, dword [esp + 0x44]
lea ecx, [ecx + eax*8]
mov eax, dword [esp + 0x24]
lea edx, [eax + edx*2]
mov eax, dword [esp + 0x3c]
sub eax, edi
movzx edi, word [edx]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x44]
add ecx, 8
dec eax
fild dword [esp + 0x4c]
lea edx, [edx + edi*2]
fstp qword [ecx - 8]
jne 0x1005abe3
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x30]
add eax, eax
add dword [esp + 0x60], eax
mov eax, dword [esp + 0xdc]
add eax, eax
add dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
inc eax
inc ecx
mov dword [esp + 0x74], eax
cmp eax, ecx
jl 0x1005ac32
mov dword [esp + 0x74], 0
mov eax, dword [esp + 0x54]
inc eax
mov dword [esp + 0x54], eax
cmp eax, dword [esp + 0xac]
jl 0x10059880
mov eax, dword [esp + 0xa8]
inc eax
mov dword [esp + 0xa8], eax
cmp eax, dword [esp + 0x44]
jl 0x100596b0
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0x978]
cmp eax, ecx
je 0x1005ac7c
push eax
call sub.MSVCR100.dll_free
add esp, 4
mov eax, dword [esp + 0x70]
lea edx, [esp + 0x178]
cmp eax, edx
je 0x1005ac94
push eax
call sub.MSVCR100.dll_free
add esp, 4
mov ecx, dword [esp + 0x3b7c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1007d356
mov esp, ebp
pop ebp
ret