Function at 0x4012d2
Capabilities:
Check for time delay via queryperformancecounter
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc4
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x1c], 0
je 0x4012fc
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa4], eax
jmp 0x401305
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa0], 0
mov ecx, 5
mov esi, str.Formatting
lea edi, [ebp - 0x7c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x84], 0x100
push 4
push 0x3000
mov ecx, dword [ebp + 0x14]
imul ecx, dword [ebp - 0x84]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x3c], eax
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.0040248e
add esp, 8
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401252
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x7c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402267
add esp, 0x18
cmp dword [ebp - 0x10], 0
je 0x401571
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x84]
jbe 0x4013e2
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x5c], edx
jmp 0x4013e8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x5c]
imul edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x80], eax
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [ebp - 0x80], 0
jne 0x40142d
push str.Failed_to_write
mov eax, dword [ebp + 8]
push eax
call fcn.00402602
add esp, 8
jmp 0x401616
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x5c]
mov dword [ebp - 0x50], edx
fild qword [ebp - 0x28]
fild qword [ebp - 0x20]
fsubp st(1)
fstp qword [ebp - 8]
fild qword [ebp - 0x44]
fdivr qword [ebp - 8]
fstp qword [ebp - 8]
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 0
fild qword [ebp - 0xac]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 0xb0], 0
fild qword [ebp - 0xb4]
fmulp st(1)
fst qword [ebp - 0x64]
fdiv qword [ebp - 8]
fstp qword [ebp - 0x64]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xbc], edx
mov dword [ebp - 0xb8], 0
fild qword [ebp - 0xbc]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], 0
fild qword [ebp - 0xc4]
fmulp st(1)
fst qword [ebp - 0x94]
fdiv qword [ebp - 0x64]
fstp qword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
imul eax, eax, 0x64
xor edx, edx
div dword [ebp - 0x9c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x18]
je 0x401516
fld qword [ebp - 0x64]
call fcn.00404254
push edx
push eax
fld qword [ebp - 0x4c]
call fcn.00404254
push eax
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402267
add esp, 0x18
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp + 0x18]
jbe 0x40156c
call fcn.0040245c
test eax, eax
je 0x40153a
push str.Switching_to_quick_format..._n
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402602
add esp, 8
jmp 0x401571
cmp dword [ebp - 0xa0], 0
jne 0x40156c
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0040248e
add esp, 8
push str.Click_stop_to_switch_to_a_quickformat_n
mov eax, dword [ebp + 8]
push eax
call fcn.00402602
add esp, 8
mov dword [ebp - 0xa0], 1
jmp 0x4013c2
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
push 0
push 0
push 0x64
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00402267
add esp, 0x18
mov eax, dword [ebp - 0x50]
xor ecx, ecx
mov edx, dword [ebp + 0x14]
xor esi, esi
push esi
push edx
push ecx
push eax
call fcn.004041a0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x34]
sbb ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ecx
fild qword [ebp - 0x58]
fild qword [ebp - 0x44]
fdivp st(1)
fstp qword [ebp - 8]
fild qword [ebp - 0x30]
fstp qword [ebp - 0x8c]
fld qword [ebp - 8]
fmul qword [0x40b1f8]
fmul qword [0x40b1f8]
fdivr qword [ebp - 0x8c]
sub esp, 8
fstp qword [esp]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push str.Wrote__I64d_bytes_in__.2f_seconds___.2f_Megabytes_sec_n
mov eax, dword [ebp + 8]
push eax
call fcn.00402602
add esp, 0x20
mov dword [ebp - 0x98], 1
push 0x8000
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0040248e
add esp, 8
mov eax, dword [ebp - 0x98]
pop edi
pop esi
mov esp, ebp
pop ebp