Function at 0x4418c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
mov eax, 0x460f08
mov ecx, 0x468980
call fcn.00409020
mov esi, eax
mov ecx, esi
mov eax, 6
mov edx, str.GRHCM2
mov dword [ebp - 0xc], esi
call fcn.004091b0
push str.8.00
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x54]
add esp, 4
mov ecx, esi
mov eax, 4
lea edx, [ebp - 0x54]
call fcn.004091b0
mov ecx, esi
mov eax, 4
mov edx, 0x4a5b40
call fcn.004091b0
mov eax, dword [0x4a5b40]
mov edx, dword [0x468b7c]
add eax, eax
add eax, eax
add eax, eax
mov ecx, esi
call fcn.004091b0
mov edi, dword [0x4804ac]
add edi, dword [0x476e24]
add edi, edi
add edi, edi
call fcn.00409ea0
cmp dword [0x4a5b40], 0
mov edx, dword [0x476e24]
mov dword [ebp - 0x2c], eax
lea eax, [eax + edx*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 8], 0
mov ebx, 1
jle 0x4419c3
mov eax, 0x489c84
cmp byte [eax + 0x44], 0
je 0x4419bd
xor edi, edi
cmp dword [eax], edi
jle 0x4419aa
lea esi, [eax + 8]
mov edx, dword [esi + 0xc]
test edx, edx
je 0x4419a1
mov ecx, dword [esi]
sub ecx, ebx
je 0x44199a
sub ecx, ebx
jne 0x4419a1
mov ecx, dword [ebp - 0x40]
jmp 0x44199d
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + edx*4 - 4], ebx
add edi, ebx
add esi, 4
cmp edi, dword [eax]
jl 0x441984
mov ecx, dword [ebp - 8]
add ecx, ebx
add eax, 0x4c
mov dword [ebp - 8], ecx
cmp ecx, dword [0x4a5b40]
jl 0x441975
mov edx, dword [0x476e24]
mov eax, dword [0x489ac8]
inc eax
mov ecx, ebx
mov dword [ebp - 4], 0
cmp eax, ebx
jle 0x4419ee
mov edi, dword [0x4804d0]
lea esp, [esp]
cmp dword [edi + ecx*4], ebx
jne 0x4419e8
add dword [ebp - 4], ebx
add ecx, ebx
cmp ecx, eax
jl 0x4419e0
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x18], esi
test edx, edx
jle 0x441a10
mov eax, dword [ebp - 0x2c]
lea esp, [esp]
cmp dword [eax + ecx*4], ebx
jne 0x441a0a
add esi, ebx
mov dword [ebp - 0x18], esi
add ecx, ebx
cmp ecx, edx
jl 0x441a00
mov ecx, dword [0x4804ac]
xor edx, edx
xor eax, eax
mov dword [ebp - 0x1c], edx
test ecx, ecx
jle 0x441a34
mov edi, dword [ebp - 0x40]
cmp dword [edi + eax*4], ebx
jne 0x441a2e
add edx, ebx
mov dword [ebp - 0x1c], edx
add eax, ebx
cmp eax, ecx
jl 0x441a24
mov eax, dword [ebp - 4]
cmp eax, esi
jle 0x441a42
mov esi, eax
mov dword [ebp - 0x50], eax
jmp 0x441a45
mov dword [ebp - 0x50], esi
cmp esi, edx
jg 0x441a4e
mov esi, edx
mov dword [ebp - 0x50], esi
lea edi, [esi + esi*2]
add edi, edi
add edi, edi
add edi, edi
mov dword [ebp - 0x30], edi
call fcn.00409ea0
lea edi, [esi*8]
mov dword [ebp - 0x10], eax
add eax, edi
lea edx, [edi + eax]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], edx
call fcn.00409ea0
mov dword [ebp - 0x14], eax
lea eax, [eax + esi*4]
xor ebx, ebx
mov dword [ebp - 0x44], eax
test esi, esi
jle 0x441aa5
jmp 0x441a90
mov edi, 0x328
call fcn.00409ea0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + ebx*4], eax
inc ebx
cmp ebx, esi
jl 0x441a90
mov eax, dword [ebp - 4]
xor ebx, ebx
cmp eax, ebx
jg 0x441ac7
mov ecx, dword [ebp - 0xc]
lea eax, [ebx + 4]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
call fcn.004091b0
mov ebx, dword [ebp - 0xc]
jmp 0x441fa5
mov esi, dword [ebp - 0x44]
lea ebx, [ebx]
mov edi, dword [0x4a5b24]
lea edi, [edi*8 + 0x320]
call fcn.00409ea0
mov dword [esi + ebx*4], eax
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x441ad0
mov edi, dword [0x489aac]
imul edi, dword [0x489ac8]
add edi, edi
add edi, edi
add edi, edi
call fcn.00409ea0
mov ecx, dword [0x469488]
mov dword [ebp - 0x4c], eax
mov eax, 0x460734
call fcn.00409020
mov ebx, eax
xor eax, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], eax
cmp dword [0x4802e0], eax
jle 0x441c47
nop
cmp dword [0x4695c8], 0
je 0x441b57
mov edx, dword [0x468cc0]
mov esi, dword [0x4804e0]
mov eax, dword [edx + eax*4]
dec esi
imul esi, eax
shl esi, 5
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x48], esi
jmp 0x441b6f
push ebx
push 1
lea eax, [ebp - 0x24]
push 4
push eax
call dword [sym.imp.MSVCR100.dll_fread]
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x48]
add esp, 0x10
add eax, eax
add eax, eax
cdq
push 1
push edx
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov eax, dword [0x489ac8]
mov edi, dword [ebp - 0x24]
mov ecx, eax
imul ecx, edi
add ecx, ecx
add ecx, ecx
add esp, 0x10
add ecx, ecx
je 0x441bb0
push ebx
push 1
push ecx
mov ecx, dword [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
mov edi, dword [ebp - 0x24]
mov eax, dword [0x489ac8]
add esp, 0x10
cmp dword [0x4695c8], 0
je 0x441bd2
mov eax, esi
cdq
push 1
push edx
push eax
push ebx
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov edi, dword [ebp - 0x24]
mov eax, dword [0x489ac8]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x441c31
mov ecx, dword [0x4804d0]
mov edx, dword [ebp - 0x44]
add ecx, 4
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
cmp dword [edx], 0
jle 0x441c28
xor ecx, ecx
test edi, edi
jle 0x441c21
mov edx, dword [ebp - 0x3c]
mov edx, dword [edx]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x4c]
lea edx, [edx + edi*8]
imul eax, ecx
add eax, esi
inc ecx
add edx, 8
fld qword [ebx + eax*8]
fstp qword [edx - 8]
mov edi, dword [ebp - 0x24]
mov eax, dword [0x489ac8]
cmp ecx, edi
jl 0x441c06
add dword [ebp - 0x3c], 4
mov ebx, dword [ebp - 8]
add dword [ebp - 0x38], 4
inc esi
cmp esi, eax
jl 0x441bea
mov eax, dword [ebp - 0x30]
add dword [ebp - 0x20], edi
inc eax
mov dword [ebp - 0x30], eax
cmp eax, dword [0x4802e0]
jl 0x441b30
push ebx
call fcn.00408fc0
add esp, 4
cmp dword [ebp - 4], 0
mov dword [ebp - 8], 0
jle 0x441f06
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
sub edx, esi
sub ebx, esi
sub ecx, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x5c], ecx
jmp 0x441c90
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
mov edi, dword [eax]
xor ecx, ecx
mov eax, edi
cmp dword [0x4a5b24], ecx
jle 0x441cbe
fld qword [eax]
inc ecx
fadd qword [esi]
add eax, 8
fstp qword [esi]
fld qword [eax - 8]
fmul st(0), st(0)
fadd qword [edx + esi]
fstp qword [edx + esi]
cmp ecx, dword [0x4a5b24]
jl 0x441ca1
fild dword [0x4a5b24]
fdivr qword [esi]
fld st(0)
fxch st(1)
fstp qword [esi]
fild dword [0x4a5b24]
fmul st(1)
fmulp st(1)
fsubr qword [edx + esi]
fldz
fcom st(1)
fnstsw ax
test ah, 1
je 0x441d00
mov eax, dword [0x4a5b24]
cmp eax, 2
jl 0x441d00
dec eax
fstp st(0)
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fdivp st(1)
call sub.MSVCR100.dll__CIsqrt
jmp 0x441d02
fstp st(1)
fstp qword [ebx + esi]
mov ebx, dword [0x4a5b24]
mov ecx, 1
cmp ebx, ecx
jle 0x441d67
fld qword [edi]
fld qword [edi + ecx*8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x441d29
inc ecx
cmp ecx, ebx
jl 0x441d14
jmp 0x441d67
fld qword [edi + ecx*8]
fcomp qword [edi]
fnstsw ax
test ah, 5
jp 0x441d39
fld qword [edi]
jmp 0x441d3c
fld qword [edi + ecx*8]
sub esp, 8
fstp qword [esp]
push ebx
push edi
call fcn.0040a6e0
mov esi, eax
push esi
push edi
call fcn.0040a670
sub ebx, esi
lea ecx, [edi + esi*8]
push ebx
push ecx
call fcn.0040a670
mov ebx, dword [0x4a5b24]
add esp, 0x20
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x5c]
mov edi, dword [eax]
mov eax, dword [edx + eax]
mov dword [ebp - 0x58], eax
mov ecx, 2
lea esi, [eax + 0x10]
jmp 0x441d86
mov ebx, dword [0x4a5b24]
lea edx, [ecx - 2]
imul edx, ebx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx - 1]
fld qword [edi + eax*8]
mov eax, 0x51eb851f
fstp qword [esi - 0x10]
imul edx, dword [0x4a5b24]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
fld qword [edi + eax*8]
mov eax, 0x51eb851f
fstp qword [esi - 8]
imul edx, dword [0x4a5b24]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 1]
fld qword [edi + eax*8]
mov eax, 0x51eb851f
fstp qword [esi]
imul edx, dword [0x4a5b24]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 2]
fld qword [edi + eax*8]
mov eax, 0x51eb851f
fstp qword [esi + 8]
imul edx, dword [0x4a5b24]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 3]
fld qword [edi + eax*8]
mov eax, 0x51eb851f
fstp qword [esi + 0x10]
imul edx, dword [0x4a5b24]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 4]
fld qword [edi + eax*8]
mov eax, 0x51eb851f
fstp qword [esi + 0x18]
imul edx, dword [0x4a5b24]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 5]
fld qword [edi + eax*8]
mov eax, 0x51eb851f
fstp qword [esi + 0x20]
imul edx, dword [0x4a5b24]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 6]
fld qword [edi + eax*8]
fstp qword [esi + 0x28]
imul edx, dword [0x4a5b24]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 7]
add ecx, 0xa
fld qword [edi + eax*8]
mov eax, 0x51eb851f
fstp qword [esi + 0x30]
imul edx, dword [0x4a5b24]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx - 2]
add esi, 0x50
fld qword [edi + eax*8]
fstp qword [esi - 0x18]
cmp edx, 0x64
jl 0x441d80
mov eax, dword [0x4a5b24]
fld qword [edi + eax*8 - 8]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x58]
add dword [ebp - 0x48], 8
fstp qword [ecx + 0x320]
add dword [ebp - 0x3c], 4
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 4]
jl 0x441c87
mov ebx, dword [ebp - 0xc]
mov ecx, ebx
mov eax, 4
lea edx, [ebp - 4]
call fcn.004091b0
mov esi, 1
cmp dword [0x489ac8], esi
jl 0x441f5c
lea edi, [esi + 0xc]
jmp 0x441f30
mov edx, dword [0x4804d0]
cmp dword [edx + esi*4], 0
jle 0x441f50
mov eax, dword [0x489aa4]
lea edx, [edi + eax]
mov ecx, ebx
mov eax, 0xd
call fcn.004091b0
inc esi
add edi, 0xd
cmp esi, dword [0x489ac8]
jle 0x441f30
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
add eax, eax
add eax, eax
add eax, eax
mov ecx, ebx
call fcn.004091b0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
add eax, eax
add eax, eax
add eax, eax
mov ecx, ebx
call fcn.004091b0
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x441fa5
mov edi, dword [ebp - 0x14]
lea esp, [esp]
mov edx, dword [edi + esi*4]
mov ecx, ebx
mov eax, 0x328
call fcn.004091b0
inc esi
cmp esi, dword [ebp - 4]
jl 0x441f90
mov eax, dword [0x4802e0]
mov ecx, dword [0x4a5b2c]
cmp eax, ecx
jg 0x441fb6
mov eax, ecx
lea edi, [eax*8]
call fcn.00409ea0
mov ecx, dword [ebp - 0x18]
mov esi, eax
test ecx, ecx
jne 0x441fdf
mov ecx, ebx
mov eax, 4
lea edx, [ebp - 0x18]
call fcn.004091b0
jmp 0x44237c
jle 0x441ff3
mov edi, dword [ebp - 0x34]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jle 0x442006
mov edi, dword [ebp - 0x10]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [0x476e24], eax
jle 0x4422ee
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x4a5b5c]
add ecx, 0xfffffffc
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x34]
sub edx, ecx
lea edi, [ecx - 8]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax*4], 0
je 0x4422da
add dword [ebp - 0x48], 4
mov eax, dword [ebp - 0x3c]
add edi, 8
xor ecx, ecx
mov dword [ebp - 0x58], edi
cmp dword [0x4802e0], ecx
jle 0x44208c
fld qword [eax]
inc ecx
fstp qword [esi + ecx*8 - 8]
fld qword [eax]
fadd qword [edi]
fstp qword [edi]
fld qword [eax]
fmul st(0), st(0)
fadd qword [edx + edi]
fstp qword [edx + edi]
mov ebx, dword [0x476e24]
lea eax, [eax + ebx*8]
cmp ecx, dword [0x4802e0]
jl 0x442064
fild dword [0x4802e0]
fdivr qword [edi]
fld st(0)
fxch st(1)
fstp qword [edi]
fild dword [0x4802e0]
fmul st(1)
fmulp st(1)
fsubr qword [edx + edi]
fldz
fcom st(1)
fnstsw ax
test ah, 1
je 0x4420d4
mov eax, dword [0x4802e0]
cmp eax, 2
jl 0x4420d4
dec eax
fstp st(0)
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
fdivp st(1)
call sub.MSVCR100.dll__CIsqrt
mov edx, dword [ebp - 0x20]
fstp qword [edx + edi]
jmp 0x4420dc
mov eax, dword [ebp - 0x20]
fstp st(1)
fstp qword [eax + edi]
mov ebx, dword [0x4802e0]
mov ecx, 1
cmp ebx, ecx
jle 0x442143
jmp 0x4420f0
fld qword [esi]
fld qword [esi + ecx*8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x442105
inc ecx
cmp ecx, ebx
jl 0x4420f0
jmp 0x442143
fld qword [esi + ecx*8]
fcomp qword [esi]
fnstsw ax
test ah, 5
jp 0x442115
fld qword [esi]
jmp 0x442118
fld qword [esi + ecx*8]
sub esp, 8
fstp qword [esp]
push ebx
push esi
call fcn.0040a6e0
mov edi, eax
push edi
push esi
call fcn.0040a670
sub ebx, edi
lea ecx, [esi + edi*8]
push ebx
push ecx
call fcn.0040a670
mov ebx, dword [0x4802e0]
add esp, 0x20
mov edx, dword [ebp - 0x48]
mov edi, dword [edx]
mov dword [ebp - 0x5c], edi
mov ecx, 2
add edi, 0x10
jmp 0x442166
mov ebx, dword [0x4802e0]
lea edx, [ecx - 2]
imul edx, ebx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx - 1]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi - 0x10]
imul edx, dword [0x4802e0]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi - 8]
imul edx, dword [0x4802e0]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 1]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi]
imul edx, dword [0x4802e0]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 2]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 8]
imul edx, dword [0x4802e0]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 3]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x10]
imul edx, dword [0x4802e0]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 4]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x18]
imul edx, dword [0x4802e0]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 5]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x20]
imul edx, dword [0x4802e0]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 6]
fld qword [esi + eax*8]
fstp qword [edi + 0x28]
imul edx, dword [0x4802e0]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 7]
add ecx, 0xa
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x30]
imul edx, dword [0x4802e0]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx - 2]
add edi, 0x50
fld qword [esi + eax*8]
fstp qword [edi - 0x18]
cmp edx, 0x64
jl 0x442160
mov eax, dword [0x4802e0]
fld qword [esi + eax*8 - 8]
mov ecx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
fstp qword [ecx + 0x320]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
add dword [ebp - 0x3c], 8
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [0x476e24]
jl 0x442040
mov ecx, ebx
mov eax, 4
lea edx, [ebp - 0x18]
call fcn.004091b0
xor edi, edi
cmp dword [0x476e24], edi
jle 0x442337
xor ebx, ebx
mov edx, dword [ebp - 0x2c]
cmp dword [edx + edi*4], 0
jle 0x442328
mov eax, dword [0x4804c8]
mov ecx, dword [ebp - 0xc]
lea edx, [ebx + eax + 0xd]
mov eax, 0xd
call fcn.004091b0
inc edi
add ebx, 0xd
cmp edi, dword [0x476e24]
jl 0x442309
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
add eax, eax
add eax, eax
add eax, eax
mov ecx, ebx
call fcn.004091b0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
add eax, eax
add eax, eax
add eax, eax
mov ecx, ebx
call fcn.004091b0
xor edi, edi
cmp dword [ebp - 0x18], edi
jle 0x44237c
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + edi*4]
mov ecx, ebx
mov eax, 0x328
call fcn.004091b0
inc edi
cmp edi, dword [ebp - 0x18]
jl 0x442364
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x442397
mov ecx, ebx
mov eax, 4
lea edx, [ebp - 0x1c]
call fcn.004091b0
jmp 0x442746
jle 0x4423ab
mov edi, dword [ebp - 0x34]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jle 0x4423be
mov edi, dword [ebp - 0x10]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [0x4804ac], eax
jle 0x4426ae
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x4804d4]
add ecx, 0xfffffffc
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x34]
sub edx, ecx
lea edi, [ecx - 8]
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], ecx
jmp 0x442400
mov ecx, dword [ebp - 0x40]
cmp dword [ecx + eax*4], 0
je 0x44269a
add dword [ebp - 0x48], 4
mov eax, dword [ebp - 0x3c]
add edi, 8
xor ecx, ecx
mov dword [ebp - 0x58], edi
cmp dword [0x4a5b2c], ecx
jle 0x44244c
fld qword [eax]
inc ecx
fstp qword [esi + ecx*8 - 8]
fld qword [eax]
fadd qword [edi]
fstp qword [edi]
fld qword [eax]
fmul st(0), st(0)
fadd qword [edx + edi]
fstp qword [edx + edi]
mov ebx, dword [0x4804ac]
lea eax, [eax + ebx*8]
cmp ecx, dword [0x4a5b2c]
jl 0x442424
fild dword [0x4a5b2c]
fdivr qword [edi]
fld st(0)
fxch st(1)
fstp qword [edi]
fild dword [0x4a5b2c]
fmul st(1)
fmulp st(1)
fsubr qword [edx + edi]
fldz
fcom st(1)
fnstsw ax
test ah, 1
je 0x442494
mov eax, dword [0x4a5b2c]
cmp eax, 2
jl 0x442494
dec eax
fstp st(0)
mov dword [ebp - 0x5c], eax
fild dword [ebp - 0x5c]
fdivp st(1)
call sub.MSVCR100.dll__CIsqrt
mov edx, dword [ebp - 0x20]
fstp qword [edx + edi]
jmp 0x44249c
mov eax, dword [ebp - 0x20]
fstp st(1)
fstp qword [eax + edi]
mov ebx, dword [0x4a5b2c]
mov ecx, 1
cmp ebx, ecx
jle 0x442503
jmp 0x4424b0
fld qword [esi]
fld qword [esi + ecx*8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4424c5
inc ecx
cmp ecx, ebx
jl 0x4424b0
jmp 0x442503
fld qword [esi + ecx*8]
fcomp qword [esi]
fnstsw ax
test ah, 5
jp 0x4424d5
fld qword [esi]
jmp 0x4424d8
fld qword [esi + ecx*8]
sub esp, 8
fstp qword [esp]
push ebx
push esi
call fcn.0040a6e0
mov edi, eax
push edi
push esi
call fcn.0040a670
sub ebx, edi
lea ecx, [esi + edi*8]
push ebx
push ecx
call fcn.0040a670
mov ebx, dword [0x4a5b2c]
add esp, 0x20
mov edx, dword [ebp - 0x48]
mov edi, dword [edx]
mov dword [ebp - 0x5c], edi
mov ecx, 2
add edi, 0x10
jmp 0x442526
mov ebx, dword [0x4a5b2c]
lea edx, [ecx - 2]
imul edx, ebx
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx - 1]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi - 0x10]
imul edx, dword [0x4a5b2c]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi - 8]
imul edx, dword [0x4a5b2c]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 1]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi]
imul edx, dword [0x4a5b2c]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 2]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 8]
imul edx, dword [0x4a5b2c]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 3]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x10]
imul edx, dword [0x4a5b2c]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 4]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x18]
imul edx, dword [0x4a5b2c]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 5]
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x20]
imul edx, dword [0x4a5b2c]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 6]
fld qword [esi + eax*8]
fstp qword [edi + 0x28]
imul edx, dword [0x4a5b2c]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 7]
add ecx, 0xa
fld qword [esi + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x30]
imul edx, dword [0x4a5b2c]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx - 2]
add edi, 0x50
fld qword [esi + eax*8]
fstp qword [edi - 0x18]
cmp edx, 0x64
jl 0x442520
mov eax, dword [0x4a5b2c]
fld qword [esi + eax*8 - 8]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 8]
fstp qword [ecx + 0x320]
mov edx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0xc]
add dword [ebp - 0x3c], 8
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [0x4804ac]
jl 0x442400
mov ecx, ebx
mov eax, 4
lea edx, [ebp - 0x1c]
call fcn.004091b0
xor edi, edi
cmp dword [0x4804ac], edi
jle 0x4426f4
xor ebx, ebx
mov edx, dword [ebp - 0x40]
cmp dword [edx + edi*4], 0
jle 0x4426e8
mov eax, dword [0x4695ec]
mov ecx, dword [ebp - 0xc]
lea edx, [ebx + eax + 0xd]
mov eax, 0xd
call fcn.004091b0
inc edi
add ebx, 0xd
cmp edi, dword [0x4804ac]
jl 0x4426c9
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add eax, eax
add eax, eax
add eax, eax
mov ecx, edi
call fcn.004091b0
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
add eax, eax
add eax, eax
add eax, eax
mov ecx, edi
call fcn.004091b0
xor edi, edi
cmp dword [ebp - 0x1c], edi
jle 0x442746
mov ebx, dword [ebp - 0x14]
jmp 0x442730
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebx + edi*4]
mov eax, 0x328
call fcn.004091b0
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x442730
mov ebx, dword [sym.imp.MSVCR100.dll_free]
test esi, esi
je 0x442756
push esi
call ebx
add esp, 4
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x442788
xor esi, esi
test ecx, ecx
jle 0x44277b
mov edi, dword [ebp - 0x44]
mov eax, dword [edi + esi*4]
test eax, eax
je 0x442776
push eax
call ebx
mov ecx, dword [ebp - 4]
add esp, 4
inc esi
cmp esi, ecx
jl 0x442766
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x442788
push eax
call ebx
add esp, 4
mov edi, dword [ebp - 0x50]
xor esi, esi
test edi, edi
jle 0x4427a6
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + esi*4]
test eax, eax
je 0x4427a1
push eax
call ebx
add esp, 4
inc esi
cmp esi, edi
jl 0x442791
cmp dword [ebp - 0x2c], 0
je 0x4427b5
mov edx, dword [ebp - 0x2c]
push edx
call ebx
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4427c4
mov eax, dword [ebp - 0x14]
push eax
call ebx
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret