Function at 0x410df0
Capabilities:
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov ecx, dword [0x438edc]
mov eax, dword [0x43800c]
mov edx, dword [0x438070]
mov dword [ebp - 0x58], ecx
xor ecx, ecx
cmp dword [0x437918], ecx
push ebx
mov dword [ebp - 0x68], eax
mov eax, dword [0x43808c]
sete cl
push esi
push edi
mov edi, dword [0x438168]
mov dword [ebp - 0x4c], eax
mov eax, edi
mov esi, 0x431c2c
sub eax, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 4], eax
mov eax, 0x437920
mov dword [ebp - 0x64], edx
call fcn.00404260
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
mov esi, eax
push esi
push 1
push 6
push str.GRHML2
mov dword [ebp - 8], esi
call ebx
add esp, 0x10
cmp eax, 1
je 0x410e8c
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x410e84
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
push str.8.00
call dword [sym.imp.MSVCR100.dll_atof]
fstp dword [ebp - 0x54]
add esp, 4
push esi
push 1
lea ecx, [ebp - 0x54]
push 4
push ecx
call ebx
add esp, 0x10
cmp eax, 1
je 0x410ed8
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x410ed0
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 1
push 4
push 0x439518
call ebx
add esp, 0x10
cmp eax, 1
je 0x410f14
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x410f0c
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [0x439518]
add eax, eax
add eax, eax
add eax, eax
je 0x410f5e
mov edx, dword [0x43803c]
push esi
push 1
push eax
push edx
call ebx
add esp, 0x10
cmp eax, 1
je 0x410f5e
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x410f56
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov ebx, dword [0x4390b0]
mov edx, dword [0x438ed4]
lea esi, [ebx + edx]
add esi, esi
add esi, esi
jne 0x410f78
mov dword [ebp - 0x24], esi
jmp 0x410fcb
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x410fb0
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x410fa8
call fcn.004048c0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push ebx
call sub.MSVCR100.dll_memset
mov edx, dword [0x438ed4]
mov dword [ebp - 0x24], ebx
mov ebx, dword [0x4390b0]
add esp, 0xc
mov eax, dword [ebp - 0x24]
lea ecx, [eax + edx*4]
xor esi, esi
mov dword [ebp - 0x3c], ecx
test edi, edi
jle 0x411025
mov ebx, dword [0x438f84]
lea eax, [edx + 1]
xor ecx, ecx
test eax, eax
jle 0x41101a
lea esp, [esp]
imul eax, esi
add eax, ecx
mov eax, dword [ebx + eax*4]
cmp eax, 0xffffff9d
je 0x411012
test eax, eax
je 0x411012
mov edx, dword [ebp - 0x24]
mov dword [edx + eax*4 - 4], 1
mov edx, dword [0x438ed4]
inc ecx
lea eax, [edx + 1]
cmp ecx, eax
jl 0x410ff0
inc esi
cmp esi, edi
jl 0x410fe0
mov ebx, dword [0x4390b0]
xor esi, esi
cmp dword [ebp - 0x4c], esi
jle 0x411074
mov edx, dword [0x4394f8]
lea edi, [esi + 1]
lea eax, [ebx + 1]
xor ecx, ecx
test eax, eax
jle 0x411067
mov edi, edi
imul eax, esi
add eax, ecx
mov eax, dword [edx + eax*4]
cmp eax, 0xffffff9d
je 0x41105e
test eax, eax
je 0x41105e
mov ebx, dword [ebp - 0x3c]
mov dword [ebx + eax*4 - 4], edi
mov ebx, dword [0x4390b0]
add ecx, edi
lea eax, [ebx + 1]
cmp ecx, eax
jl 0x411040
add esi, edi
cmp esi, dword [ebp - 0x4c]
jl 0x411035
mov edx, dword [0x438ed4]
xor esi, esi
xor eax, eax
mov dword [ebp - 0xc], esi
test edx, edx
jle 0x411091
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + eax*4], 1
jne 0x41108c
inc esi
mov dword [ebp - 0xc], esi
inc eax
cmp eax, edx
jl 0x411082
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x10], ecx
test ebx, ebx
jle 0x4110af
mov edx, dword [ebp - 0x3c]
nop
cmp dword [edx + eax*4], 1
jne 0x4110aa
inc ecx
mov dword [ebp - 0x10], ecx
inc eax
cmp eax, ebx
jl 0x4110a0
mov eax, dword [ebp - 4]
cmp eax, esi
jle 0x4110bd
mov ebx, eax
mov dword [ebp - 0x48], ebx
jmp 0x4110c2
mov ebx, esi
mov dword [ebp - 0x48], esi
cmp ebx, ecx
jg 0x4110cb
mov ebx, ecx
mov dword [ebp - 0x48], ebx
lea esi, [ebx + ebx*2]
add esi, esi
add esi, esi
add esi, esi
mov dword [ebp - 0x50], esi
jne 0x4110dd
xor ecx, ecx
jmp 0x411158
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x411147
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x41113f
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x411123
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
mov ecx, edi
lea esi, [ebx*8]
mov dword [ebp - 0x18], ecx
add ecx, esi
mov dword [ebp - 0x30], ecx
add ecx, esi
mov dword [ebp - 0x2c], ecx
test esi, esi
jne 0x411177
xor ecx, ecx
jmp 0x4111f5
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4111e4
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x4111dc
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
lea ecx, [ecx]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x4111c0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
mov ecx, edi
mov dword [ebp - 0x14], ecx
lea ecx, [ecx + ebx*4]
xor esi, esi
mov dword [ebp - 0x40], ecx
test ebx, ebx
jle 0x41123a
push 0x328
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x4112c4
push 0x328
push 0
push edi
call sub.MSVCR100.dll_memset
mov edx, dword [ebp - 0x14]
mov dword [edx + esi*4], edi
inc esi
add esp, 0xc
cmp esi, ebx
jl 0x411204
mov eax, dword [ebp - 4]
test eax, eax
jg 0x411324
mov ecx, dword [ebp - 8]
push ecx
push 1
lea edx, [ebp - 0x50]
push 4
push edx
mov dword [ebp - 0x50], 0
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x411854
push str._Unable_to_write._Full_disk__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x4112bc
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
lea ecx, [ecx]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x4112a0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x41131c
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
lea ebx, [ebx]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x411300
push 3
call dword [sym.imp.MSVCR100.dll_exit]
xor edi, edi
test eax, eax
jle 0x411369
mov ebx, dword [0x439500]
lea ebx, [ebx*8 + 0x320]
test ebx, ebx
jne 0x41133f
xor esi, esi
jmp 0x41135b
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x41137b
push ebx
push 0
push esi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x40]
mov dword [ecx + edi*4], esi
mov eax, dword [ebp - 4]
inc edi
cmp edi, eax
jl 0x41132a
lea esi, [eax*8]
test esi, esi
jne 0x4113d5
xor edi, edi
jmp 0x4113fe
push str._Out_of_memory._Please_run_a_smaller_problem_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x4113cd
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x4113b1
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4113f2
mov eax, 0x42f959
lea ebx, [edi + 3]
call fcn.0041f960
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [0x43817c]
push 0
push 0
push 0
push ecx
mov dword [ebp - 0x44], edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
xor ebx, ebx
add esp, 0x10
cmp dword [0x439500], ebx
jle 0x41148e
mov esi, dword [ebp - 4]
lea eax, [esi*8]
test eax, eax
je 0x411446
mov edx, dword [0x43817c]
push edx
push 1
push eax
push edi
call dword [sym.imp.MSVCR100.dll_fread]
mov esi, dword [ebp - 4]
add esp, 0x10
xor ecx, ecx
test esi, esi
jle 0x411485
mov edx, dword [0x437c30]
mov eax, edi
mov edi, dword [ebp - 0x58]
add edx, 4
sub edi, dword [ebp - 0x44]
cmp dword [edx], 1
jl 0x411469
fld qword [eax]
fsub qword [edi + eax]
fstp qword [eax]
mov esi, dword [ebp - 0x40]
fld qword [eax]
mov esi, dword [esi + ecx*4]
fstp qword [esi + ebx*8]
mov esi, dword [ebp - 4]
inc ecx
add eax, 8
add edx, 4
cmp ecx, esi
jl 0x41145d
mov edi, dword [ebp - 0x44]
inc ebx
cmp ebx, dword [0x439500]
jl 0x411424
mov eax, dword [0x43817c]
push eax
call fcn.00404200
add esp, 4
cmp dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
jle 0x411757
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x38]
mov edi, dword [ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x34]
xor ecx, ecx
mov eax, edi
cmp dword [0x439500], ecx
jle 0x411505
fld qword [esi]
inc ecx
fadd qword [eax]
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 [0x439500]
jl 0x4114e8
fild dword [0x439500]
fdivr qword [esi]
fld st(0)
fxch st(1)
fstp qword [esi]
fild dword [0x439500]
fmul st(1)
fmulp st(1)
fsubr qword [edx + esi]
fldz
fcom st(1)
fnstsw ax
test ah, 1
je 0x41154d
mov eax, dword [0x439500]
cmp eax, 2
jl 0x41154d
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 + esi]
jmp 0x411555
mov eax, dword [ebp - 0x20]
fstp st(1)
fstp qword [eax + esi]
mov esi, dword [0x439500]
mov ecx, 1
mov ebx, esi
cmp esi, ecx
jle 0x4115b9
fld qword [edi]
fld qword [edi + ecx*8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x41157b
inc ecx
cmp ecx, esi
jl 0x411566
jmp 0x4115b9
fld qword [edi + ecx*8]
fcomp qword [edi]
fnstsw ax
test ah, 5
jp 0x41158b
fld qword [edi]
jmp 0x41158e
fld qword [edi + ecx*8]
sub esp, 8
fstp qword [esp]
push esi
push edi
call fcn.00405090
mov esi, eax
push esi
push edi
call fcn.00405020
sub ebx, esi
lea ecx, [edi + esi*8]
push ebx
push ecx
call fcn.00405020
mov esi, dword [0x439500]
add esp, 0x20
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x60]
mov ebx, dword [eax]
mov eax, dword [edx + eax]
mov dword [ebp - 0x5c], eax
mov ecx, 2
lea edi, [eax + 0x10]
jmp 0x4115d7
mov esi, dword [0x439500]
lea edx, [ecx - 2]
imul edx, esi
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx - 1]
fld qword [ebx + eax*8]
mov eax, 0x51eb851f
fstp qword [edi - 0x10]
imul edx, dword [0x439500]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
fld qword [ebx + eax*8]
mov eax, 0x51eb851f
fstp qword [edi - 8]
imul edx, dword [0x439500]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 1]
fld qword [ebx + eax*8]
mov eax, 0x51eb851f
fstp qword [edi]
imul edx, dword [0x439500]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 2]
fld qword [ebx + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 8]
imul edx, dword [0x439500]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 3]
fld qword [ebx + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x10]
imul edx, dword [0x439500]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 4]
fld qword [ebx + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x18]
imul edx, dword [0x439500]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 5]
fld qword [ebx + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x20]
imul edx, dword [0x439500]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx + 6]
fld qword [ebx + eax*8]
fstp qword [edi + 0x28]
imul edx, dword [0x439500]
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 [ebx + eax*8]
mov eax, 0x51eb851f
fstp qword [edi + 0x30]
imul edx, dword [0x439500]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ecx - 2]
add edi, 0x50
fld qword [ebx + eax*8]
fstp qword [edi - 0x18]
cmp edx, 0x64
jl 0x4115d1
mov eax, dword [0x439500]
fld qword [ebx + eax*8 - 8]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x5c]
add dword [ebp - 0x34], 8
fstp qword [ecx + 0x320]
add dword [ebp - 0x38], 4
inc eax
mov dword [ebp - 0x28], eax
cmp eax, dword [ebp - 4]
jl 0x4114d1
mov ebx, dword [ebp - 8]
mov esi, dword [sym.imp.MSVCR100.dll_fwrite]
push ebx
mov edi, 1
push edi
lea edx, [ebp - 4]
push 4
push edx
call esi
add esp, 0x10
cmp eax, edi
je 0x411785
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
cmp dword [0x43925c], edi
jl 0x4117cc
mov esi, 0xd
mov eax, dword [0x4390c8]
cmp dword [eax + edi*4], 0
jle 0x4117ba
mov ecx, dword [0x43924c]
push ebx
push 1
lea eax, [esi + ecx]
push 0xd
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x411776
inc edi
add esi, 0xd
cmp edi, dword [0x43925c]
jle 0x411792
mov esi, dword [sym.imp.MSVCR100.dll_fwrite]
mov eax, dword [ebp - 4]
add eax, eax
add eax, eax
add eax, eax
je 0x4117f8
mov edx, dword [ebp - 0x18]
push ebx
push 1
push eax
push edx
call esi
add esp, 0x10
cmp eax, 1
je 0x4117f8
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
mov eax, dword [ebp - 4]
add eax, eax
add eax, eax
add eax, eax
je 0x411824
push ebx
push 1
push eax
mov eax, dword [ebp - 0x2c]
push eax
call esi
add esp, 0x10
cmp eax, 1
je 0x411824
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x411854
mov edi, dword [ebp - 0x14]
mov edi, edi
mov eax, dword [edi + esi*4]
push ebx
push 1
push 0x328
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x411776
inc esi
cmp esi, dword [ebp - 4]
jl 0x411830
cmp dword [ebp - 0xc], 0
jne 0x411887
mov ecx, dword [ebp - 8]
push ecx
push 1
lea edx, [ebp - 0xc]
push 4
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x411e1c
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
mov eax, dword [0x438078]
push 0
push 0
push 0
push eax
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov ecx, dword [ebp - 0xc]
add esp, 0x10
test ecx, ecx
jle 0x4118c9
mov edi, dword [ebp - 0x30]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jle 0x4118c9
mov edi, dword [ebp - 0x18]
and ecx, 0x1fffffff
add ecx, ecx
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0xc]
mov esi, dword [0x439508]
imul esi, ecx
add esi, esi
add esi, esi
add esi, esi
jne 0x4118de
xor ebx, ebx
jmp 0x411909
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4118fd
mov eax, 0x42f959
mov ebx, 3
call fcn.0041f960
push esi
push 0
push ebx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], eax
cmp dword [0x438efc], eax
jle 0x4119bc
mov edi, dword [ebp - 0x64]
mov edx, dword [0x438ed4]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x20], edi
lea esp, [esp]
cmp dword [edi], 0
mov dword [ebp - 0x34], 0
jle 0x4119a5
lea esp, [esp]
lea eax, [edx*8]
test eax, eax
je 0x411965
mov ecx, dword [0x438078]
push ecx
push 1
push eax
push esi
call dword [sym.imp.MSVCR100.dll_fread]
mov edx, dword [0x438ed4]
add esp, 0x10
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x411997
mov edi, dword [ebp - 0x24]
cmp dword [edi + eax*4], 0
je 0x41198f
mov edx, dword [0x439508]
fld qword [esi + eax*8]
imul edx, ecx
add edx, dword [ebp - 0x38]
inc ecx
fstp qword [ebx + edx*8]
mov edx, dword [0x438ed4]
inc eax
cmp eax, edx
jl 0x411970
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
inc dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [edi]
jl 0x411940
inc dword [ebp - 0x28]
mov eax, dword [0x438efc]
add edi, 4
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x28], eax
jl 0x411930
mov ecx, dword [0x438078]
push ecx
call fcn.00404200
xor edi, edi
add esp, 4
cmp dword [ebp - 0xc], edi
jle 0x411d0a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov ecx, 8
sub ecx, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
jmp 0x411a00
mov edx, dword [0x439508]
mov esi, dword [ebp - 0x38]
mov eax, edx
imul eax, edi
xor ecx, ecx
test edx, edx
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + eax*8]
jle 0x411a3d
lea ebx, [ebx]
fld qword [esi]
inc ecx
fadd qword [eax]
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 [0x439508]
jl 0x411a20
fild dword [0x439508]
fdivr qword [esi]
fld st(0)
fxch st(1)
fstp qword [esi]
fild dword [0x439508]
fmul st(1)
fmulp st(1)
fsubr qword [edx + esi]
fldz
fcom st(1)
fnstsw ax
test ah, 1
je 0x411a85
mov eax, dword [0x439508]
cmp eax, 2
jl 0x411a85
dec eax
fstp st(0)
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
fdivp st(1)
call sub.MSVCR100.dll__CIsqrt
mov ecx, dword [ebp - 0x20]
fstp qword [ecx + esi]
jmp 0x411a8d
mov edx, dword [ebp - 0x20]
fstp st(1)
fstp qword [edx + esi]
mov edx, dword [0x439508]
mov eax, edx
imul eax, edi
mov ecx, 1
mov dword [ebp - 0x60], edx
lea esi, [ebx + eax*8]
cmp edx, ecx
jle 0x411afb
fld qword [esi]
fld qword [esi + ecx*8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x411abc
inc ecx
cmp ecx, edx
jl 0x411aa7
jmp 0x411afb
fld qword [esi + ecx*8]
fcomp qword [esi]
fnstsw ax
test ah, 5
jp 0x411acc
fld qword [esi]
jmp 0x411acf
fld qword [esi + ecx*8]
sub esp, 8
fstp qword [esp]
push edx
push esi
call fcn.00405090
push eax
push esi
mov dword [ebp - 0x5c], eax
call fcn.00405020
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
sub eax, ecx
push eax
lea ecx, [esi + ecx*8]
push ecx
call fcn.00405020
add esp, 0x20
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + edi*4]
mov dword [ebp - 0x28], esi
mov ecx, 2
add esi, 0x10
lea edx, [ecx - 2]
imul edx, dword [0x439508]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x439508]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx - 1]
fstp qword [esi - 0x10]
imul edx, dword [0x439508]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x439508]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
mov edx, ecx
fstp qword [esi - 8]
imul edx, dword [0x439508]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x439508]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 1]
fstp qword [esi]
imul edx, dword [0x439508]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x439508]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 2]
fstp qword [esi + 8]
imul edx, dword [0x439508]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x439508]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 3]
fstp qword [esi + 0x10]
imul edx, dword [0x439508]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x439508]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
add esi, 0x50
fld qword [ebx + edx*8]
lea edx, [ecx + 4]
fstp qword [esi - 0x38]
imul edx, dword [0x439508]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x439508]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 5]
fstp qword [esi - 0x30]
imul edx, dword [0x439508]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x439508]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 6]
fstp qword [esi - 0x28]
imul edx, dword [0x439508]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x439508]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 7]
fstp qword [esi - 0x20]
imul edx, dword [0x439508]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x439508]
imul eax, edi
add edx, eax
add ecx, 0xa
lea eax, [ecx - 2]
fld qword [ebx + edx*8]
fstp qword [esi - 0x18]
cmp eax, 0x64
jl 0x411b0c
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add ecx, eax
imul ecx, dword [0x439508]
inc edi
add eax, 8
fld qword [ecx + ebx - 8]
mov dword [ebp - 0x38], eax
fstp qword [edx + 0x320]
cmp edi, dword [ebp - 0xc]
jl 0x411a00
mov esi, dword [ebp - 8]
push esi
push 1
lea eax, [ebp - 0xc]
push 4
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x411d33
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
xor edi, edi
cmp dword [0x438ed4], edi
jle 0x411d7d
xor esi, esi
nop
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + edi*4], 0
jle 0x411d6e
mov ecx, dword [ebp - 8]
mov edx, dword [0x4390c0]
push ecx
push 1
lea eax, [esi + edx + 0xd]
push 0xd
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x411776
inc edi
add esi, 0xd
cmp edi, dword [0x438ed4]
jl 0x411d40
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
add eax, eax
je 0x411dad
mov edx, dword [ebp - 0x18]
push esi
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x411dad
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
add eax, eax
je 0x411ddd
push esi
push 1
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x411ddd
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
xor esi, esi
cmp dword [ebp - 0xc], esi
jle 0x411e0e
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov eax, dword [edi + esi*4]
push ecx
push 1
push 0x328
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x411776
inc esi
cmp esi, dword [ebp - 0xc]
jl 0x411de7
test ebx, ebx
je 0x411e1c
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jne 0x411e50
mov edx, dword [ebp - 8]
push edx
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x41235c
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
jle 0x411e64
mov edi, dword [ebp - 0x30]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
test ecx, ecx
jle 0x411e7a
mov edi, dword [ebp - 0x18]
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
mov esi, dword [0x438efc]
mov edi, esi
imul edi, ecx
add edi, edi
add edi, edi
add edi, edi
jne 0x411e91
xor ebx, ebx
jmp 0x411ec5
push edi
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x411eb0
mov eax, 0x42f959
mov ebx, 3
call fcn.0041f960
push edi
push 0
push ebx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x10]
mov esi, dword [0x438efc]
add esp, 0xc
mov edx, dword [0x4390b0]
xor edi, edi
mov dword [ebp - 0x38], edi
cmp edx, edi
jle 0x411f16
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + edi*4], 0
je 0x411f0e
xor eax, eax
test esi, esi
jle 0x411f0b
imul esi, dword [ebp - 0x38]
imul edx, eax
mov ecx, dword [0x438ec4]
add edx, edi
add esi, eax
inc eax
fld qword [ecx + edx*8]
fstp qword [ebx + esi*8]
mov esi, dword [0x438efc]
mov edx, dword [0x4390b0]
cmp eax, esi
jl 0x411ee3
inc dword [ebp - 0x38]
inc edi
cmp edi, edx
jl 0x411ed4
mov ecx, dword [ebp - 0x10]
xor edi, edi
test ecx, ecx
jle 0x41224a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
sub ecx, eax
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x20], ecx
mov ecx, 8
sub ecx, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
jmp 0x411f48
mov esi, dword [0x438efc]
mov edx, esi
imul edx, edi
xor ecx, ecx
lea eax, [ebx + edx*8]
mov edx, dword [ebp - 0x1c]
test esi, esi
mov esi, dword [ebp - 0x38]
jle 0x411f7d
lea esp, [esp]
fld qword [esi]
inc ecx
fadd qword [eax]
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 [0x438efc]
jl 0x411f60
fild dword [0x438efc]
fdivr qword [esi]
fld st(0)
fxch st(1)
fstp qword [esi]
fild dword [0x438efc]
fmul st(1)
fmulp st(1)
fsubr qword [edx + esi]
fldz
fcom st(1)
fnstsw ax
test ah, 1
je 0x411fc5
mov eax, dword [0x438efc]
cmp eax, 2
jl 0x411fc5
dec eax
fstp st(0)
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
fdivp st(1)
call sub.MSVCR100.dll__CIsqrt
mov eax, dword [ebp - 0x20]
fstp qword [eax + esi]
jmp 0x411fcd
mov ecx, dword [ebp - 0x20]
fstp st(1)
fstp qword [ecx + esi]
mov edx, dword [0x438efc]
mov eax, edx
imul eax, edi
mov ecx, 1
mov dword [ebp - 0x60], edx
lea esi, [ebx + eax*8]
cmp edx, ecx
jle 0x41203b
fld qword [esi]
fld qword [esi + ecx*8]
fucompp
fnstsw ax
test ah, 0x44
jp 0x411ffc
inc ecx
cmp ecx, edx
jl 0x411fe7
jmp 0x41203b
fld qword [esi + ecx*8]
fcomp qword [esi]
fnstsw ax
test ah, 5
jp 0x41200c
fld qword [esi]
jmp 0x41200f
fld qword [esi + ecx*8]
sub esp, 8
fstp qword [esp]
push edx
push esi
call fcn.00405090
push eax
push esi
mov dword [ebp - 0x5c], eax
call fcn.00405020
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
sub eax, ecx
push eax
lea ecx, [esi + ecx*8]
push ecx
call fcn.00405020
add esp, 0x20
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + edi*4]
mov dword [ebp - 0x28], esi
mov ecx, 2
add esi, 0x10
lea edx, [ecx - 2]
imul edx, dword [0x438efc]
mov eax, 0x51eb851f
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x438efc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx - 1]
fstp qword [esi - 0x10]
imul edx, dword [0x438efc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x438efc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
mov edx, ecx
fstp qword [esi - 8]
imul edx, dword [0x438efc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x438efc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 1]
fstp qword [esi]
imul edx, dword [0x438efc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x438efc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 2]
fstp qword [esi + 8]
imul edx, dword [0x438efc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x438efc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 3]
fstp qword [esi + 0x10]
imul edx, dword [0x438efc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x438efc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
add esi, 0x50
fld qword [ebx + edx*8]
lea edx, [ecx + 4]
fstp qword [esi - 0x38]
imul edx, dword [0x438efc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x438efc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 5]
fstp qword [esi - 0x30]
imul edx, dword [0x438efc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x438efc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 6]
fstp qword [esi - 0x28]
imul edx, dword [0x438efc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x438efc]
imul eax, edi
add edx, eax
mov eax, 0x51eb851f
fld qword [ebx + edx*8]
lea edx, [ecx + 7]
fstp qword [esi - 0x20]
imul edx, dword [0x438efc]
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, eax
mov eax, dword [0x438efc]
imul eax, edi
add edx, eax
add ecx, 0xa
lea eax, [ecx - 2]
fld qword [ebx + edx*8]
fstp qword [esi - 0x18]
cmp eax, 0x64
jl 0x41204c
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add ecx, eax
imul ecx, dword [0x438efc]
inc edi
add eax, 8
fld qword [ecx + ebx - 8]
mov dword [ebp - 0x38], eax
fstp qword [edx + 0x320]
cmp edi, dword [ebp - 0x10]
jl 0x411f42
mov esi, dword [ebp - 8]
push esi
push 1
lea eax, [ebp - 0x10]
push 4
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x412273
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
xor edi, edi
cmp dword [0x4390b0], edi
jle 0x4122bd
xor esi, esi
nop
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx + edi*4], 0
jle 0x4122ae
mov ecx, dword [ebp - 8]
mov edx, dword [0x438524]
push ecx
push 1
lea eax, [esi + edx + 0xd]
push 0xd
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x411776
inc edi
add esi, 0xd
cmp edi, dword [0x4390b0]
jl 0x412280
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, eax
add eax, eax
je 0x4122ed
mov edx, dword [ebp - 0x18]
push esi
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4122ed
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, eax
add eax, eax
je 0x41231d
push esi
push 1
push eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x41231d
mov eax, 0x42f998
mov ebx, 5
call fcn.0041f960
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x41234e
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + esi*4]
push edi
push 1
push 0x328
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x411776
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x412327
test ebx, ebx
je 0x41235c
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov edi, dword [ebp - 0x6c]
test edi, edi
jle 0x412393
xor esi, esi
test edi, edi
jle 0x412382
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x41237d
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
inc esi
cmp esi, edi
jl 0x41236c
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x412393
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov edi, dword [ebp - 0x48]
xor esi, esi
test edi, edi
jle 0x4123b5
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x4123b0
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
inc esi
cmp esi, edi
jl 0x41239c
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4123c6
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x4123d9
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret