Function at 0x4012e0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov eax, 0x103c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00404360
sub esp, eax
mov dword [esp], 0xfffffff6
call sym._GetStdHandle_4
sub esp, 4
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x4078a0
call sym._ConStreamInit
mov dword [esp], 0xfffffff5
call sym._GetStdHandle_4
sub esp, 4
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x407860
call sym._ConStreamInit
mov dword [esp], 0xfffffff4
call sym._GetStdHandle_4
sub esp, 4
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], 0x407820
call sym._ConStreamInit
mov dword [esp + 4], 0x67
mov dword [esp], 0x407860
call sym._ConResPuts
cmp dword [ebp + 8], 1
jle 0x401431
xor edi, edi
xor esi, esi
xor ebx, ebx
mov ecx, 1
jmp 0x4013d6
mov eax, dword [0x407800]
test eax, eax
jne case.0x4013ff.1
cmp word [edx + 2], 0x3a
jne case.0x4013ff.1
mov dword [0x407800], edx
add ecx, 1
cmp dword [ebp + 8], ecx
je 0x401431
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + ecx*4]
movzx eax, word [edx]
cmp ax, 0x2d
je 0x4013eb
cmp ax, 0x2f
jne 0x4013b0
movzx eax, word [edx + 2]
sub eax, 0x43
cmp ax, 0x33
ja case.0x4013ff.1
movzx eax, ax
jmp dword [eax*4 + 0x4061c0]
mov eax, esi
test al, al
jne case.0x4013ff.1
mov dword [0x407804], 1
mov esi, 1
add ecx, 1
cmp dword [ebp + 8], ecx
jne 0x4013d6
mov eax, dword [0x407800]
test eax, eax
je 0x401630
mov dword [esp + 4], eax
mov dword [esp], section..bss
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x1018]
lea ebx, [ebp - 0x1010]
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x1014]
lea esi, [ebp - 0x810]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x101c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], esi
mov dword [esp], section..bss
mov dword [0x407004], 0x5c
mov dword [0x407800], 0x407000
call sym._GetVolumeInformationW_32
sub esp, 0x20
test eax, eax
je 0x4016af
mov ecx, dword [0x407810]
test ecx, ecx
je 0x40154d
mov eax, dword [0x407800]
movzx eax, word [eax]
mov dword [esp + 4], 0x4061b0
mov dword [esp], esi
mov dword [esp + 8], eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], esi
call sym._CreateFileW_28
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4016ca
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov dword [esp + 4], 1
mov dword [esp], sym._CtrlCIntercept_4
call sym._SetConsoleCtrlHandler_8
sub esp, 8
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x68
mov dword [esp], 0x407860
call sym._ConResPrintf
movzx eax, byte [0x407808]
mov dword [esp + 0x20], sym._ChkdskCallback_12
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], eax
movzx eax, byte [0x40780c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
movzx eax, byte [0x407804]
mov dword [esp + 4], ebx
mov dword [esp + 0xc], eax
movzx eax, byte [0x407810]
mov dword [esp + 8], eax
mov eax, dword [0x407800]
mov dword [esp], eax
call sym._Chkdsk_36
mov edx, dword [0x407814]
xor eax, eax
sub esp, 0x24
test edx, edx
setne al
neg eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test bl, bl
jne case.0x4013ff.1
mov dword [0x407808], 1
mov ebx, 1
jmp 0x4013ce
test bl, bl
jne case.0x4013ff.1
mov dword [0x407810], 1
mov ebx, 1
jmp 0x4013ce
mov eax, edi
test al, al
jne case.0x4013ff.1
mov dword [0x40780c], 1
mov edi, 1
jmp 0x4013ce
mov dword [esp + 4], section..bss
mov dword [esp], 0x400
call sym._GetCurrentDirectoryW_8
sub esp, 8
test eax, eax
jne 0x40144f
call sym._GetLastError_0
mov edx, eax
mov eax, 0xcc
call sym._PrintWin32Error
mov eax, 0xffffffff
jmp 0x4015cc
mov dword [esp + 8], edx
mov dword [esp + 4], 0xcb
mov dword [esp], 0x407860
call sym._ConResPrintf
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp + 4], 0x65
mov dword [esp], 0x407860
mov dword [esp + 8], eax
call sym._ConResPrintf
mov eax, 0xffffffff
jmp 0x4015cc
call sym._GetLastError_0
mov edx, eax
mov eax, 0xcd
call sym._PrintWin32Error
mov eax, 0xffffffff
jmp 0x4015cc
mov dword [esp + 4], 0xce
mov dword [esp], 0x407820
call sym._ConResPuts
mov eax, 0xffffffff
jmp 0x4015cc