Function at 0x452940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
fld qword [0x468c58]
push ebx
push esi
push edi
mov dword [ebp - 0x3c], eax
mov esi, ecx
call sub.MSVCR100.dll__CIsqrt
fstp qword [ebp - 0x54]
mov ecx, dword [0x4695e8]
fld1
fld qword [0x466d10]
mov dword [ebp - 0x64], ecx
mov eax, 0x155
dec eax
fmul st(1), st(0)
fmul st(1), st(0)
fmul st(1), st(0)
jne 0x45297f
fstp st(0)
fstp qword [ebp - 0x6c]
cmp dword [0x4a5b3c], eax
je 0x45299f
mov dword [0x4695e8], 2
cmp dword [0x480390], 6
jne 0x4529cf
mov eax, dword [0x469228]
add eax, dword [0x469224]
mov ecx, dword [0x469220]
lea eax, [eax + ecx + 3]
lea edi, [eax*8]
mov dword [ebp - 0x58], eax
call fcn.00409ea0
mov dword [ebp - 0x24], eax
mov ecx, dword [0x4a5b40]
add ecx, dword [0x48038c]
mov eax, dword [0x489ac8]
add ecx, dword [0x4804b0]
lea edi, [ecx + eax + 3]
imul edi, dword [0x489aac]
add edi, eax
add edi, edi
add edi, edi
add edi, edi
call fcn.00409ea0
mov edi, eax
mov eax, dword [0x489aac]
mov edx, eax
imul edx, dword [0x489ac8]
lea ecx, [edi + eax*8]
mov dword [ebp - 0x38], ecx
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x34], ecx
lea ecx, [ecx + eax*8]
mov dword [ebp - 0x28], ecx
lea ecx, [ecx + edx*8]
mov edx, dword [0x4804b0]
imul edx, eax
mov dword [ebp - 0x48], ecx
lea ecx, [ecx + edx*8]
mov edx, dword [0x48038c]
imul edx, eax
lea eax, [ecx + edx*8]
mov dword [ebp - 0x44], ecx
mov ecx, dword [0x469488]
mov dword [ebp - 0x5c], eax
mov eax, 0x460734
mov dword [ebp - 0x40], edi
call fcn.00409020
cmp dword [0x4802e0], 0
mov dword [0x480394], eax
mov dword [ebp - 0x1c], 0
jle 0x453457
cmp dword [0x4695c8], 0
mov edi, dword [sym.imp.MSVCR100.dll_fread]
je 0x452aa0
mov ecx, dword [0x468cc0]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [0x4804e0]
mov edx, dword [ecx + edx*4]
dec ebx
imul ebx, edx
shl ebx, 5
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x60], ebx
jmp 0x452ab9
mov eax, dword [0x480394]
push eax
push 1
lea ecx, [ebp - 0x20]
push 4
push ecx
call edi
mov edx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x60]
add esp, 0x10
lea eax, [edx*4]
test eax, eax
je 0x452adc
mov edx, dword [0x480394]
push edx
push 1
push eax
mov eax, dword [0x468c08]
push eax
call edi
mov edx, dword [ebp - 0x20]
add esp, 0x10
mov ecx, dword [0x489ac8]
mov eax, ecx
imul eax, edx
add eax, eax
add eax, eax
add eax, eax
je 0x452b0b
mov ecx, dword [0x480394]
mov edx, dword [ebp - 0x28]
push ecx
push 1
push eax
push edx
call edi
mov edx, dword [ebp - 0x20]
mov ecx, dword [0x489ac8]
add esp, 0x10
cmp dword [0x4695c8], 0
je 0x452b33
mov eax, ebx
cdq
push 1
push edx
push eax
mov eax, dword [0x480394]
push eax
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov edx, dword [ebp - 0x20]
mov ecx, dword [0x489ac8]
add esp, 0x10
xor eax, eax
test edx, edx
jle 0x452b5f
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x40]
jmp 0x452b47
mov ecx, dword [0x489ac8]
imul ecx, eax
add ecx, dword [0x4695e8]
inc eax
fld qword [ebx + ecx*8]
fstp qword [edi + eax*8 - 8]
mov edx, dword [ebp - 0x20]
cmp eax, edx
jl 0x452b41
fldz
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 0x5c]
sub esp, 8
fstp qword [esp]
push ecx
mov ecx, dword [0x476e24]
imul ecx, dword [ebp - 0x1c]
push eax
mov eax, dword [0x4a5b5c]
push edi
push 0
lea ecx, [eax + ecx*8]
mov eax, dword [ebp - 0x28]
push ecx
push eax
push edx
call fcn.00402970
mov ecx, dword [0x4a5b40]
mov edx, dword [ebp - 0x20]
add esp, 0x24
push edi
mov edi, dword [ebp - 0x34]
push 1
push ecx
push edx
mov edx, dword [0x468b7c]
mov eax, edi
call fcn.00407fc0
mov ebx, dword [0x4804b0]
mov edx, dword [0x468c30]
mov ecx, ebx
imul ecx, dword [ebp - 0x1c]
lea eax, [ebx*8]
push eax
lea eax, [edx + ecx*8]
mov ecx, dword [0x468b60]
push eax
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x20]
add esp, 0x1c
push edx
mov edx, dword [0x468b60]
push 1
push ebx
push eax
mov eax, edi
call fcn.00408290
mov ebx, dword [ebp - 0x38]
mov ecx, dword [0x468c08]
mov edx, dword [ebp - 0x20]
push ebx
push ecx
mov ecx, dword [ebp - 0x44]
push edi
push edx
call fcn.00423950
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x20]
push edi
push 1
mov edx, ebx
call fcn.00408900
xor ebx, ebx
add esp, 0x28
cmp dword [ebp - 0x20], ebx
jle 0x453441
cmp dword [0x476bc4], 0
mov eax, dword [0x468c08]
mov edi, dword [eax + ebx*4]
mov eax, dword [0x480390]
mov dword [ebp - 0x30], edi
je 0x452d30
sub eax, 2
je 0x452cfd
sub eax, 4
je 0x452cc2
sub eax, 2
je 0x452c91
mov ecx, dword [0x489adc]
fld qword [ecx + edi*8]
mov edx, dword [0x489ab0]
mov eax, dword [ebp - 0x1c]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [edx + eax*8]
fstp qword [esp]
push str._12.0lf_12.0lf
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x18
jmp 0x452ee0
mov ecx, dword [0x489ab0]
mov edx, dword [ebp - 0x1c]
lea edx, [ecx + edx*8]
mov ecx, esi
mov eax, 8
call fcn.004091b0
mov eax, dword [0x489adc]
lea edx, [eax + edi*8]
mov ecx, esi
mov eax, 8
call fcn.004091b0
jmp 0x452ee0
mov ecx, dword [0x489ab0]
mov edx, dword [ebp - 0x1c]
fld qword [ecx + edx*8]
mov edx, dword [ebp - 0x24]
mov ecx, esi
fstp qword [edx]
mov eax, 8
call fcn.004091b0
mov eax, dword [0x489adc]
fld qword [eax + edi*8]
mov edx, dword [ebp - 0x24]
mov ecx, esi
fstp qword [edx]
mov eax, 8
call fcn.004091b0
jmp 0x452ee0
mov ecx, dword [0x489adc]
fld qword [ecx + edi*8]
mov edx, dword [0x489ab0]
mov eax, dword [ebp - 0x1c]
sub esp, 0x10
fstp qword [esp + 8]
fld qword [edx + eax*8]
fstp qword [esp]
push str._lf__lf_
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x18
jmp 0x452ee0
sub eax, 2
je 0x452eba
sub eax, 4
je 0x452d98
sub eax, 2
je 0x452d64
mov ecx, dword [ebp - 0x1c]
imul edi, edi, 0xd
add edi, dword [0x4a5b34]
imul ecx, ecx, 0xd
add ecx, dword [0x476d0c]
push edi
push ecx
push str._12.12s_12.12s
jmp 0x452ed6
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0xd
add edx, dword [0x476d0c]
mov ecx, esi
mov eax, 0xc
call fcn.004091b0
mov edx, edi
imul edx, edx, 0xd
add edx, dword [0x4a5b34]
mov ecx, esi
mov eax, 0xc
call fcn.004091b0
jmp 0x452ee0
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x476d0c]
imul edx, edx, 0xd
add eax, edx
lea edx, [ebp - 0x18]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x452db0
mov al, byte [ebp - 0x18]
lea edi, [ebp - 0x18]
cmp al, 0x20
jne 0x452de0
push 0xc
lea ecx, [ebp - 0x17]
push ecx
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
mov al, byte [ebp - 0x18]
add esp, 0xc
cmp al, 0x20
je 0x452dc4
mov edi, edi
cmp byte [edi], 0
je 0x452deb
inc edi
cmp byte [edi], 0x20
jne 0x452de0
lea eax, [ebp - 0x18]
mov byte [edi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452df4
sub eax, edx
cmp eax, 0x10
jae 0x452e19
mov edx, 0x10
sub edx, eax
push edx
lea ecx, [ebp + eax - 0x18]
push 0x20
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, esi
mov eax, 0x10
lea edx, [ebp - 0x18]
call fcn.004091b0
mov eax, dword [ebp - 0x30]
imul eax, eax, 0xd
add eax, dword [0x4a5b34]
lea edx, [ebp - 0x18]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x452e40
mov al, byte [ebp - 0x18]
lea edi, [ebp - 0x18]
cmp al, 0x20
jne 0x452e70
push 0xc
lea edx, [ebp - 0x17]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR100.dll_memmove]
mov al, byte [ebp - 0x18]
add esp, 0xc
cmp al, 0x20
je 0x452e54
mov edi, edi
cmp byte [edi], 0
je 0x452e7b
inc edi
cmp byte [edi], 0x20
jne 0x452e70
lea eax, [ebp - 0x18]
mov byte [edi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452e84
sub eax, edx
cmp eax, 0x10
jae 0x452ea9
mov edx, 0x10
sub edx, eax
push edx
lea ecx, [ebp + eax - 0x18]
push 0x20
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, esi
mov eax, 0x10
lea edx, [ebp - 0x18]
call fcn.004091b0
jmp 0x452ee0
mov eax, dword [ebp - 0x1c]
imul edi, edi, 0xd
add edi, dword [0x4a5b34]
imul eax, eax, 0xd
add eax, dword [0x476d0c]
push edi
push eax
push str._s__s_
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
mov eax, dword [0x480390]
sub eax, 2
je 0x452f84
sub eax, 4
je 0x452f61
sub eax, 2
je 0x452f29
fld qword [ebp - 0x54]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [ecx + ebx*8]
fstp qword [esp + 8]
fld qword [edx + ebx*8]
fstp qword [esp]
push str._11.5lf_11.5lf_11.5lf_n
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x20
jmp 0x452fdc
mov eax, dword [ebp - 0x38]
lea edx, [eax + ebx*8]
mov ecx, esi
mov eax, 8
call fcn.004091b0
mov ecx, dword [ebp - 0x34]
lea edx, [ecx + ebx*8]
mov ecx, esi
mov eax, 8
call fcn.004091b0
mov ecx, esi
mov eax, 8
lea edx, [ebp - 0x54]
call fcn.004091b0
jmp 0x452fdc
mov edx, dword [ebp - 0x38]
fld qword [edx + ebx*8]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
fstp qword [eax]
fld qword [ecx + ebx*8]
mov dword [ebp - 0x2c], 3
fstp qword [eax + 8]
fld qword [ebp - 0x54]
fstp qword [eax + 0x10]
jmp 0x452fdc
fld qword [ebp - 0x54]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
sub esp, 0x18
fstp qword [esp + 0x10]
fld qword [edx + ebx*8]
fstp qword [esp + 8]
fld qword [eax + ebx*8]
fstp qword [esp]
push str._lf__lf__lf
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x20
cmp dword [0x469220], 0
jne 0x452fd0
cmp dword [0x469224], 0
jne 0x452fd0
cmp dword [0x469228], 0
jne 0x452fd0
push esi
push 0xa
jmp 0x452fd3
push esi
push 0x2c
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 8
mov eax, dword [0x469220]
test eax, eax
je 0x453161
xor edi, edi
test eax, eax
jle 0x45310f
jmp 0x453000
mov ecx, dword [0x4899f0]
mov eax, dword [ecx + edi*4]
mov ecx, dword [0x480390]
dec eax
sub ecx, 2
je 0x4530dc
sub ecx, 4
je 0x4530bb
sub ecx, 2
je 0x453080
mov edx, dword [0x489ac8]
imul edx, ebx
add edx, eax
mov eax, dword [ebp - 0x28]
sub esp, 8
fld qword [eax + edx*8]
fstp qword [esp]
push str._11.5f
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
lea eax, [edi + 1]
cdq
mov ecx, 7
idiv ecx
add esp, 0x10
test edx, edx
jne 0x453102
mov edx, dword [0x469220]
dec edx
cmp edi, edx
je 0x453102
push esi
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 8
jmp 0x453102
mov ecx, dword [0x489ac8]
mov edx, dword [ebp - 0x28]
imul ecx, ebx
add ecx, eax
fld qword [edx + ecx*8]
mov ecx, dword [ebp - 0x3c]
fst qword [ecx]
fld qword [0x4a5b10]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4530aa
fld qword [ebp - 0x6c]
fstp qword [ecx]
mov edx, dword [ebp - 0x3c]
mov ecx, esi
mov eax, 8
call fcn.004091b0
jmp 0x453102
mov ecx, dword [0x489ac8]
mov edx, dword [ebp - 0x28]
imul ecx, ebx
add ecx, eax
mov eax, dword [ebp - 0x2c]
inc eax
fld qword [edx + ecx*8]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
fstp qword [ecx + eax*8 - 8]
jmp 0x453102
mov edx, dword [0x489ac8]
imul edx, ebx
add edx, eax
mov eax, dword [ebp - 0x28]
sub esp, 8
fld qword [eax + edx*8]
fstp qword [esp]
push 0x46695c
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
inc edi
cmp edi, dword [0x469220]
jl 0x453000
mov ecx, dword [0x480390]
cmp ecx, 2
jne 0x45314b
mov eax, dword [0x469224]
test eax, eax
jne 0x453174
mov eax, dword [0x469228]
test eax, eax
jne 0x4532d5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.MSVCR100.dll__fseeki64]
push esi
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 0x18
jmp 0x453161
cmp ecx, 6
je 0x453167
cmp ecx, 8
je 0x453167
push esi
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 8
mov ecx, dword [0x480390]
mov eax, dword [0x469224]
test eax, eax
je 0x4532c8
xor edi, edi
test eax, eax
jle 0x453289
mov edi, edi
mov ecx, dword [0x4899f4]
mov eax, dword [ecx + edi*4]
mov ecx, dword [0x480390]
dec eax
sub ecx, 2
je 0x45324d
sub ecx, 4
je 0x453228
sub ecx, 2
je 0x453200
mov edx, dword [0x476e24]
imul edx, dword [ebp - 0x1c]
add edx, eax
mov eax, dword [0x4a5b5c]
sub esp, 8
fld qword [eax + edx*8]
fstp qword [esp]
push str._11.5f
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
lea eax, [edi + 1]
cdq
mov ecx, 7
idiv ecx
add esp, 0x10
test edx, edx
jne 0x453276
mov edx, dword [0x469224]
dec edx
cmp edi, edx
je 0x453276
push esi
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 8
jmp 0x453276
mov ecx, dword [0x476e24]
imul ecx, dword [ebp - 0x1c]
mov edx, dword [0x4a5b5c]
add ecx, eax
mov eax, 8
fld qword [edx + ecx*8]
mov edx, dword [ebp - 0x3c]
mov ecx, esi
fstp qword [edx]
call fcn.004091b0
jmp 0x453276
mov ecx, dword [0x476e24]
imul ecx, dword [ebp - 0x1c]
mov edx, dword [0x4a5b5c]
add ecx, eax
mov eax, dword [ebp - 0x2c]
inc eax
fld qword [edx + ecx*8]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
fstp qword [ecx + eax*8 - 8]
jmp 0x453276
mov edx, dword [0x476e24]
imul edx, dword [ebp - 0x1c]
add edx, eax
mov eax, dword [0x4a5b5c]
sub esp, 8
fld qword [eax + edx*8]
fstp qword [esp]
push 0x46695c
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
inc edi
cmp edi, dword [0x469224]
jl 0x453180
mov ecx, dword [0x480390]
cmp ecx, 2
jne 0x4532b2
mov eax, dword [0x469228]
test eax, eax
jne 0x4532d5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.MSVCR100.dll__fseeki64]
push esi
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 0x18
jmp 0x4532c8
cmp ecx, 6
je 0x4532c8
cmp ecx, 8
je 0x4532c8
push esi
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 8
mov eax, dword [0x469228]
test eax, eax
je 0x45341b
xor edi, edi
test eax, eax
jle 0x4533e6
nop
mov ecx, dword [0x4899f8]
mov eax, dword [ecx + edi*4]
mov ecx, dword [0x480390]
dec eax
sub ecx, 2
je 0x4533b0
sub ecx, 4
je 0x45338b
sub ecx, 2
je 0x453363
mov edx, dword [0x4804ac]
imul edx, dword [ebp - 0x30]
add edx, eax
mov eax, dword [0x4804d4]
sub esp, 8
fld qword [eax + edx*8]
fstp qword [esp]
push str._11.5lf
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
lea eax, [edi + 1]
cdq
mov ecx, 7
idiv ecx
add esp, 0x10
test edx, edx
jne 0x4533d9
mov edx, dword [0x469224]
dec edx
cmp edi, edx
je 0x4533d9
push esi
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 8
jmp 0x4533d9
mov ecx, dword [0x4804ac]
imul ecx, dword [ebp - 0x30]
mov edx, dword [0x4804d4]
add ecx, eax
mov eax, 8
fld qword [edx + ecx*8]
mov edx, dword [ebp - 0x3c]
mov ecx, esi
fstp qword [edx]
call fcn.004091b0
jmp 0x4533d9
mov ecx, dword [0x4804ac]
imul ecx, dword [ebp - 0x30]
mov edx, dword [0x4804d4]
add ecx, eax
mov eax, dword [ebp - 0x2c]
inc eax
fld qword [edx + ecx*8]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
fstp qword [ecx + eax*8 - 8]
jmp 0x4533d9
mov edx, dword [0x4804ac]
imul edx, dword [ebp - 0x30]
add edx, eax
mov eax, dword [0x4804d4]
sub esp, 8
fld qword [eax + edx*8]
fstp qword [esp]
push str._lf_
push esi
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
inc edi
cmp edi, dword [0x469228]
jl 0x4532e0
mov eax, dword [0x480390]
cmp eax, 2
jne 0x453405
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov eax, dword [0x480390]
add esp, 0x10
cmp eax, 6
je 0x453424
cmp eax, 8
je 0x45341b
push esi
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 8
cmp dword [0x480390], 6
jne 0x453437
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x24]
add eax, eax
add eax, eax
add eax, eax
mov ecx, esi
call fcn.004091b0
inc ebx
cmp ebx, dword [ebp - 0x20]
jl 0x452c2e
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [0x4802e0]
jl 0x452a70
mov edi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x64]
mov esi, dword [sym.imp.MSVCR100.dll_free]
mov dword [0x4695e8], ecx
test edi, edi
je 0x453470
push edi
call esi
add esp, 4
cmp dword [0x480390], 6
jne 0x453486
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x453486
push eax
call esi
add esp, 4
mov edx, dword [0x480394]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d089
mov esp, ebp
pop ebp
ret