Function at 0x428b50
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [0x43800c]
lea eax, [ebx + 1]
imul eax, ebx
cdq
sub eax, edx
push esi
mov esi, eax
mov eax, dword [0x438f90]
xor edx, edx
sar esi, 1
cmp eax, 2
sete dl
push edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x54], esi
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x4c], edx
cmp eax, 6
jne 0x428bcf
cmp dword [0x4390d0], 0
je 0x428bcf
mov eax, dword [ebp - 0x38]
lea ecx, [ebx + eax*2]
add ecx, dword [0x438f80]
lea eax, [ecx + esi + 1]
lea edi, [eax*8]
mov dword [ebp - 0x68], eax
call fcn.00404b60
mov edi, eax
mov dword [ebp - 0x3c], edi
jmp 0x428bd2
mov edi, dword [ebp - 0x3c]
mov ecx, dword [0x438f80]
test ecx, ecx
je 0x428c0a
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
sub ecx, edx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, eax
mov dword [0x4378a8], ecx
jmp 0x428c14
mov dword [0x4378a8], 0
cmp dword [0x438f90], 2
jne 0x428c30
mov eax, dword [str._lf_]
mov cl, byte [0x435b8c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], cl
jmp 0x428c41
mov edx, dword [str._11.5lf]
mov eax, dword [0x435b94]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
cmp dword [0x4390d0], 0
je case.0x428d0a.4
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov edx, ebx
sub edx, ecx
mov ecx, dword [ebp - 0x38]
neg edx
sbb edx, edx
neg edx
add edx, eax
mov dword [0x4378a0], edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*8]
sub edx, eax
sub ecx, edx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [0x4378a4], ecx
lea ecx, [eax*8]
sub ecx, eax
sub esi, ecx
neg esi
sbb esi, esi
neg esi
add esi, eax
mov eax, dword [0x438f90]
mov dword [0x4378ac], esi
cmp eax, 6
je 0x428ceb
mov esi, 0x432248
cmp eax, 8
jne 0x428cf0
mov esi, 0x431c2c
mov eax, 0x439120
call fcn.00404260
mov dword [ebp - 0x30], eax
mov eax, dword [0x438f90]
add eax, 0xfffffffe
cmp eax, 6
ja case.0x428d0a.4
jmp dword [eax*4 + 0x429938]
mov edx, ebx
mov ebx, dword [ebp - 0x30]
push edx
call fcn.0042ba00
mov ebx, dword [ebp - 0x44]
add esp, 4
jmp case.0x428d0a.4
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x30]
push eax
push ebx
call fcn.00429960
jmp 0x428d4f
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x30]
push ebx
call fcn.00429e70
jmp 0x428d4f
mov edx, dword [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x30]
push ebx
call fcn.0042af20
add esp, 8
mov esi, dword [0x439518]
add esi, 2
imul esi, dword [ebp - 0x38]
add esi, esi
add esi, esi
add esi, esi
jne 0x428d6b
xor ecx, ecx
jmp 0x428db3
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x58], eax
test eax, eax
jne 0x428da4
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 0x428d9c
call fcn.004048c0
push 3
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 0
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x58]
add esp, 0xc
mov eax, dword [ebp - 0x38]
add eax, eax
add eax, eax
add eax, eax
mov dword [ebp - 0x48], ecx
add ecx, eax
add eax, ecx
cmp dword [0x438efc], 0
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x34], 0
jle 0x42980b
mov esi, dword [ebp - 0x68]
mov eax, ebx
imul eax, ebx
mov dword [ebp - 0x70], eax
jmp 0x428df0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
push eax
push ecx
push ebx
call fcn.0041f7c0
mov ecx, dword [ebp - 0x44]
mov edx, dword [0x4380b0]
lea eax, [ecx*8]
imul ecx, dword [ebp - 0x34]
add esp, 0xc
push eax
lea eax, [edx + ecx*8]
mov ecx, dword [0x438184]
push eax
push ecx
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x70]
mov edx, dword [0x438050]
lea eax, [ecx*8]
imul ecx, dword [ebp - 0x34]
add esp, 0xc
push eax
lea eax, [edx + ecx*8]
mov ecx, dword [0x4380bc]
push eax
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [ebp - 0x64]
mov eax, dword [0x439518]
add esp, 0xc
push edx
mov edx, dword [0x43803c]
push 1
push eax
mov eax, dword [ebp - 0x48]
push ebx
call fcn.004036b0
add esp, 0x10
test ebx, ebx
jle 0x428e8a
mov edi, dword [ebp - 0x50]
mov ecx, ebx
and ecx, 0x1fffffff
add ecx, ecx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x3c]
cmp dword [0x4390d0], 0
je 0x4297f8
cmp dword [0x438da0], 0
mov eax, dword [0x438f90]
je 0x428fa4
sub eax, 2
mov ebx, dword [ebp - 0x30]
je 0x428f7e
sub eax, 4
je 0x428f30
sub eax, 2
je 0x428ee5
mov ecx, dword [0x438000]
mov edx, dword [ebp - 0x34]
fld qword [ecx + edx*8]
sub esp, 8
fstp qword [esp]
push str._12.0lf
push ebx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
jmp 0x4290fa
mov eax, dword [0x438000]
mov ecx, dword [ebp - 0x34]
push ebx
push 1
lea eax, [eax + ecx*8]
push 8
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4290fa
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 0x428f28
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov edx, dword [0x438000]
mov eax, dword [ebp - 0x34]
fld qword [edx + eax*8]
push ebx
push 1
fstp qword [edi]
push 8
push edi
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4290fa
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 0x428f76
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [0x438000]
mov edx, dword [ebp - 0x34]
fld qword [ecx + edx*8]
sub esp, 8
fstp qword [esp]
push str._lf_
push ebx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
jmp 0x4290fa
sub eax, 2
je 0x4290db
sub eax, 4
je 0x42901a
mov ebx, dword [ebp - 0x30]
sub eax, 2
mov eax, dword [ebp - 0x34]
je 0x428fd1
imul eax, eax, 0xd
add eax, dword [0x438178]
push eax
push str._12.12s
jmp 0x4290f0
imul eax, eax, 0xd
add eax, dword [0x438178]
push ebx
push 1
push 0xc
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4290fa
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 0x429012
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [ebp - 0x34]
imul eax, eax, 0xd
add eax, dword [0x438178]
lea edx, [ebp - 0x1c]
sub edx, eax
jmp 0x429030
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x429030
mov al, byte [ebp - 0x1c]
lea ebx, [ebp - 0x1c]
cmp al, 0x20
jne 0x429060
push 0xc
lea eax, [ebp - 0x1b]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
mov al, byte [ebp - 0x1c]
add esp, 0xc
cmp al, 0x20
je 0x429044
mov edi, edi
cmp byte [ebx], 0
je 0x42906b
inc ebx
cmp byte [ebx], 0x20
jne 0x429060
lea eax, [ebp - 0x1c]
mov byte [ebx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429074
sub eax, edx
cmp eax, 0x10
jge 0x429099
mov edx, 0x10
sub edx, eax
push edx
lea ecx, [ebp + eax - 0x1c]
push 0x20
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ebx, dword [ebp - 0x30]
push ebx
push 1
lea eax, [ebp - 0x1c]
push 0x10
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4290fa
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 0x4290d3
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x30]
imul ecx, ecx, 0xd
add ecx, dword [0x438178]
push ecx
push 0x435b98
push ebx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
mov eax, dword [0x438f90]
sub eax, 2
je 0x429178
sub eax, 4
je 0x429164
mov edx, dword [0x438070]
sub eax, 2
mov eax, dword [ebp - 0x34]
mov ecx, dword [edx + eax*4]
je 0x429122
push ecx
push str._5ld_n
jmp 0x42918a
push ebx
push 1
lea edx, [ebp - 0x74]
push 4
push edx
mov dword [ebp - 0x74], ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x429194
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 0x42915c
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [0x438070]
mov ecx, dword [ebp - 0x34]
fild dword [eax + ecx*4]
mov esi, 1
fstp qword [edi]
jmp 0x429194
mov edx, dword [0x438070]
mov eax, dword [ebp - 0x34]
mov ecx, dword [edx + eax*4]
push ecx
push str._ld_
push ebx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
mov ecx, dword [0x438f90]
mov eax, ecx
sub eax, 6
je 0x4292a1
sub eax, 2
je 0x42920a
mov eax, dword [0x438184]
lea edx, [ebp - 0x2c]
push edx
mov edx, dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x4c]
push 7
push edx
push eax
push ecx
mov edi, ebx
call fcn.00404f50
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x4c]
push edx
mov edx, dword [0x438f90]
push 7
push eax
push ecx
push edx
call fcn.00404f50
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x4c]
push ecx
mov ecx, dword [0x438f90]
push 7
push edx
push eax
push ecx
call fcn.00404f50
add esp, 0x48
jmp 0x4293bf
mov eax, dword [ebp - 0x44]
add eax, eax
add eax, eax
add eax, eax
je 0x429232
mov edx, dword [0x438184]
push ebx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x42983d
mov edi, dword [ebp - 0x38]
add edi, edi
add edi, edi
add edi, edi
je 0x429257
mov eax, dword [ebp - 0x48]
push ebx
push 1
push edi
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x429865
test edi, edi
je 0x4293bf
mov ecx, dword [ebp - 0x50]
push ebx
push 1
push edi
push ecx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4293bf
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 0x429299
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov ebx, dword [ebp - 0x44]
xor edx, edx
cmp ebx, 4
jl 0x4292e6
mov eax, dword [0x438184]
lea ecx, [ebx - 4]
shr ecx, 2
add eax, 0x10
inc ecx
lea edx, [ecx*4]
fld qword [eax - 0x10]
add esi, 4
fstp qword [edi + esi*8 - 0x20]
add eax, 0x20
dec ecx
fld qword [eax - 0x28]
fstp qword [edi + esi*8 - 0x18]
fld qword [eax - 0x20]
fstp qword [edi + esi*8 - 0x10]
fld qword [eax - 0x18]
fstp qword [edi + esi*8 - 8]
jne 0x4292c1
cmp edx, ebx
jge 0x429303
mov eax, dword [0x438184]
mov ecx, ebx
lea eax, [eax + edx*8]
sub ecx, edx
fld qword [eax]
inc esi
fstp qword [edi + esi*8 - 8]
add eax, 8
dec ecx
jne 0x4292f6
mov ebx, dword [ebp - 0x38]
xor ecx, ecx
cmp ebx, 4
jl 0x429346
mov eax, dword [ebp - 0x48]
lea edx, [ebx - 4]
shr edx, 2
add eax, 0x10
inc edx
lea ecx, [edx*4]
fld qword [eax - 0x10]
add esi, 4
fstp qword [edi + esi*8 - 0x20]
add eax, 0x20
dec edx
fld qword [eax - 0x28]
fstp qword [edi + esi*8 - 0x18]
fld qword [eax - 0x20]
fstp qword [edi + esi*8 - 0x10]
fld qword [eax - 0x18]
fstp qword [edi + esi*8 - 8]
jne 0x429321
cmp ecx, ebx
jge 0x42935f
lea ebx, [ebx]
mov edx, dword [ebp - 0x48]
fld qword [edx + ecx*8]
inc ecx
fstp qword [edi + esi*8]
inc esi
cmp ecx, ebx
jl 0x429350
xor ecx, ecx
cmp ebx, 4
jl 0x4293a5
mov eax, dword [ebp - 0x50]
lea edx, [ebx - 4]
shr edx, 2
add eax, 0x10
inc edx
lea ecx, [edx*4]
lea ebx, [ebx]
fld qword [eax - 0x10]
add esi, 4
fstp qword [edi + esi*8 - 0x20]
add eax, 0x20
dec edx
fld qword [eax - 0x28]
fstp qword [edi + esi*8 - 0x18]
fld qword [eax - 0x20]
fstp qword [edi + esi*8 - 0x10]
fld qword [eax - 0x18]
fstp qword [edi + esi*8 - 8]
jne 0x429380
cmp ecx, ebx
jge 0x4293bf
lea esp, [esp]
mov eax, dword [ebp - 0x50]
fld qword [eax + ecx*8]
inc ecx
fstp qword [edi + esi*8]
inc esi
cmp ecx, ebx
jl 0x4293b0
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x58], ebx
cmp dword [ebp - 0x44], ebx
jle 0x429479
mov ecx, dword [0x4380bc]
add ecx, 0x10
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ecx
mov edi, edi
mov dword [ebp - 0x6c], 0
test ebx, ebx
js 0x42945d
lea edx, [ebx + 1]
cmp edx, 4
jl 0x429434
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x60]
shr edx, 2
lea ebx, [edx*4]
lea eax, [eax + edi*8 + 0x10]
add edi, ebx
mov dword [ebp - 0x6c], ebx
lea esp, [esp]
fld qword [ecx - 0x10]
add eax, 0x20
fstp qword [eax - 0x30]
add ecx, 0x20
dec edx
fld qword [ecx - 0x28]
fstp qword [eax - 0x28]
fld qword [ecx - 0x20]
fstp qword [eax - 0x20]
fld qword [ecx - 0x18]
fstp qword [eax - 0x18]
jne 0x429410
mov ebx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x6c]
cmp edx, ebx
jg 0x42945d
mov ecx, dword [ebp - 0x5c]
mov eax, dword [0x4380bc]
add ecx, edx
lea ecx, [eax + ecx*8]
mov eax, ebx
sub eax, edx
mov edx, dword [ebp - 0x40]
inc eax
fld qword [ecx]
inc edi
fstp qword [edx + edi*8 - 8]
add ecx, 8
dec eax
jne 0x429450
mov eax, dword [ebp - 0x44]
add dword [ebp - 0x5c], eax
inc ebx
lea ecx, [eax*8]
add dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], ebx
cmp ebx, eax
jl 0x4293e0
mov eax, dword [0x438f90]
sub eax, 2
je 0x4295a4
sub eax, 4
je 0x42953a
sub eax, 2
je 0x4294b4
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x4c]
push str._11.6lf
push ecx
mov ecx, dword [0x438f90]
push 7
push edx
push eax
push ecx
jmp 0x4295b8
mov eax, dword [ebp - 0x54]
add eax, eax
add eax, eax
add eax, eax
je 0x4295c3
mov edx, dword [ebp - 0x30]
push edx
push 1
push eax
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4295c3
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 0x429532
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 0x429516
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov ebx, dword [ebp - 0x54]
xor edx, edx
cmp ebx, 4
jl 0x429587
mov eax, dword [ebp - 0x40]
lea edi, [ebx - 4]
shr edi, 2
add eax, 0x10
inc edi
lea edx, [edi*4]
jmp 0x429560
fld qword [eax - 0x10]
mov ecx, dword [ebp - 0x3c]
fstp qword [ecx + esi*8]
add esi, 4
fld qword [eax - 8]
add eax, 0x20
dec edi
fstp qword [ecx + esi*8 - 0x18]
fld qword [eax - 0x20]
fstp qword [ecx + esi*8 - 0x10]
fld qword [eax - 0x18]
fstp qword [ecx + esi*8 - 8]
jne 0x429560
cmp edx, ebx
jge 0x4295c3
jmp 0x429590
mov ecx, dword [ebp - 0x40]
fld qword [ecx + edx*8]
mov eax, dword [ebp - 0x3c]
fstp qword [eax + esi*8]
inc edx
inc esi
cmp edx, ebx
jl 0x429590
jmp 0x4295c3
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x4c]
push edx
push 7
push eax
push ecx
push 2
mov edi, dword [ebp - 0x30]
call fcn.00404f50
add esp, 0x18
mov eax, dword [0x438f80]
test eax, eax
je 0x42979f
xor edi, edi
test eax, eax
jle 0x429763
lea ebx, [ebx]
mov eax, dword [0x438f90]
sub eax, 2
je 0x429721
sub eax, 4
je 0x4296fb
sub eax, 2
je 0x429665
mov edx, dword [0x4390b0]
imul edx, dword [ebp - 0x34]
mov eax, dword [0x438f98]
mov ecx, dword [eax + edi*4]
mov ebx, dword [ebp - 0x30]
add ecx, edx
mov edx, dword [0x438ec4]
sub esp, 8
fld qword [edx + ecx*8 - 8]
fstp qword [esp]
push str._11.5lf
push ebx
call dword [sym.imp.MSVCR100.dll_fprintf]
lea eax, [edi + 1]
cdq
mov ecx, 7
idiv ecx
add esp, 0x10
test edx, edx
jne 0x429756
mov edx, dword [0x438f80]
dec edx
cmp edi, edx
je 0x429756
push ebx
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 8
jmp 0x429756
mov eax, dword [0x4390b0]
imul eax, dword [ebp - 0x34]
mov ecx, dword [0x438f98]
add eax, dword [ecx + edi*4]
mov ecx, dword [ebp - 0x30]
mov edx, dword [0x438ec4]
push ecx
push 1
fld qword [edx + eax*8 - 8]
mov eax, dword [ebp - 0x40]
push 8
push eax
fstp qword [eax]
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x429756
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 0x4296f3
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 ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ecx, esi
cmp ecx, 3
jbe 0x4296d7
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov edx, dword [0x4390b0]
imul edx, dword [ebp - 0x34]
mov eax, dword [0x438f98]
add edx, dword [eax + edi*4]
mov ecx, dword [0x438ec4]
inc esi
fld qword [ecx + edx*8 - 8]
mov edx, dword [ebp - 0x3c]
fstp qword [edx + esi*8 - 8]
jmp 0x429756
mov eax, dword [0x4390b0]
imul eax, dword [ebp - 0x34]
mov ecx, dword [0x438f98]
mov edx, dword [ecx + edi*4]
mov ecx, dword [ebp - 0x30]
add edx, eax
mov eax, dword [0x438ec4]
sub esp, 8
fld qword [eax + edx*8 - 8]
fstp qword [esp]
push str._lf_
push ecx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0x10
inc edi
cmp edi, dword [0x438f80]
jl 0x4295e0
cmp dword [0x438f90], 2
jne 0x42977f
mov edx, dword [ebp - 0x30]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call dword [sym.imp.MSVCR100.dll__fseeki64]
add esp, 0x10
mov eax, dword [0x438f90]
cmp eax, 6
je 0x4297cd
cmp eax, 8
je 0x4297c4
mov eax, dword [ebp - 0x30]
push eax
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 8
jmp 0x4297c4
cmp dword [0x438f90], 2
jne 0x4297c4
mov edi, dword [ebp - 0x30]
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call dword [sym.imp.MSVCR100.dll__fseeki64]
push edi
push 0xa
call dword [sym.imp.MSVCR100.dll_fputc]
add esp, 0x18
cmp dword [0x438f90], 6
jne 0x4297f5
mov eax, dword [ebp - 0x68]
add eax, eax
add eax, eax
add eax, eax
je 0x4297f5
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x3c]
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x42988d
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp eax, dword [0x438efc]
jl 0x428df0
cmp dword [0x4390d0], 0
je 0x429906
mov eax, dword [0x438f90]
sub eax, 3
je 0x4298e7
sub eax, 2
jne 0x4298f9
mov ecx, dword [ebp - 0x30]
push 0x435bc0
push ecx
jmp 0x4298f0
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 0x42985d
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
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 0x429885
call fcn.004048c0
push 5
call dword [sym.imp.MSVCR100.dll_exit]
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 0x4298df
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 0x4298c3
push 5
call dword [sym.imp.MSVCR100.dll_exit]
mov edx, dword [ebp - 0x30]
push 0x435bbc
push edx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
cmp dword [0x438f90], 6
jne 0x429926
cmp dword [0x4390d0], 0
je 0x429926
test edi, edi
je 0x429926
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e325
mov esp, ebp
pop ebp
ret