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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2610
call fcn.0040c370
push ebx
push esi
push edi
push 0x20
lea eax, [ebp - 0x2cc]
push eax
push 0x415aa0
call fcn.00405b4d
mov dword [ebp - 0x500], eax
cmp dword [ebp - 0x500], 0xffffffff
jne 0x4031d9
push 1
push 0x100
push 0x4167c0
push 0x1b71
mov eax, dword [0x415a88]
push eax
call fcn.004046da
push 1
push 0x100
push 0x4166a0
push 0x1b72
mov eax, dword [0x415a88]
push eax
call fcn.004046da
push 0
push 0x4167c0
push 0x4166a0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x403a92
mov eax, dword [ebp - 0x500]
push eax
call fcn.00404d78
mov dword [ebp - 0x10c], eax
push 0
mov eax, dword [ebp - 0x10c]
sub eax, 0x110
push eax
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405c7d
push 0x110
push 0x4168c0
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405cac
xor eax, eax
mov al, byte [0x4169cc]
shl eax, 0x18
xor ecx, ecx
mov cl, byte [0x4169ce]
shl ecx, 8
or eax, ecx
xor ecx, ecx
mov cl, byte [0x4169cd]
shl ecx, 0x10
or eax, ecx
xor ecx, ecx
mov cl, byte [0x4169cf]
or eax, ecx
mov dword [ebp - 0x3f8], eax
xor eax, eax
mov al, byte [0x4169c8]
shl eax, 0x18
xor ecx, ecx
mov cl, byte [0x4169ca]
shl ecx, 8
or eax, ecx
xor ecx, ecx
mov cl, byte [0x4169c9]
shl ecx, 0x10
or eax, ecx
xor ecx, ecx
mov cl, byte [0x4169cb]
or eax, ecx
mov dword [ebp - 0x3f4], eax
cmp dword [ebp - 0x3f8], 0x270f
je 0x4032e8
push 1
push 0x100
push 0x4167c0
push 0x1b73
mov eax, dword [0x415a88]
push eax
call fcn.004046da
push 1
push 0x100
push 0x4166a0
push 0x1b74
mov eax, dword [0x415a88]
push eax
call fcn.004046da
push 0
push 0x4167c0
push 0x4166a0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x403a92
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x3f4]
mov edx, ecx
shl ecx, 4
add ecx, edx
shl ecx, 4
sub eax, ecx
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x508], 0
jmp 0x403325
inc dword [ebp - 0x508]
mov eax, dword [ebp - 0x3f4]
cmp dword [ebp - 0x508], eax
jge 0x403a7c
mov eax, dword [ebp - 0x508]
mov ecx, eax
shl eax, 4
add eax, ecx
shl eax, 4
add eax, dword [ebp - 0x110]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405c7d
push 0x110
push 0x4168c0
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405cac
xor eax, eax
mov al, byte [0x4169c5]
shl eax, 0x10
xor ecx, ecx
mov cl, byte [0x4169c4]
shl ecx, 0x18
or eax, ecx
xor ecx, ecx
mov cl, byte [0x4169c6]
shl ecx, 8
or eax, ecx
xor ecx, ecx
mov cl, byte [0x4169c7]
or eax, ecx
mov dword [ebp - 0x234], eax
xor eax, eax
mov al, byte [0x4169c8]
shl eax, 0x18
xor ecx, ecx
mov cl, byte [0x4169ca]
shl ecx, 8
or eax, ecx
xor ecx, ecx
mov cl, byte [0x4169c9]
shl ecx, 0x10
or eax, ecx
xor ecx, ecx
mov cl, byte [0x4169cb]
or eax, ecx
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 2
je 0x40340e
cmp dword [ebp - 0x114], 0x8ae
je 0x40340e
mov eax, dword [ebp - 0x234]
add dword [ebp - 0x2d4], eax
jmp 0x40331f
xor eax, eax
mov al, byte [0x4169c1]
shl eax, 0x10
xor ecx, ecx
mov cl, byte [0x4169c0]
shl ecx, 0x18
or eax, ecx
xor ecx, ecx
mov cl, byte [0x4169c2]
shl ecx, 8
or eax, ecx
xor ecx, ecx
mov cl, byte [0x4169c3]
or eax, ecx
mov dword [ebp - 0x240], eax
push 0x4168c0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x504], 0
cmp dword [ebp - 0x114], 2
jne 0x403489
push 0x118
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00405ae8
mov dword [ebp - 0x504], eax
cmp dword [ebp - 0x504], 0
jne 0x403503
push 0x415aa0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x230]
push eax
call fcn.00404a2a
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x4034e8
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x2608], eax
mov eax, dword [ebp - 0x2608]
mov byte [eax], 0
jmp 0x4034ef
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [ebp - 0x114], 2
jne 0x403530
push 0x20
lea eax, [ebp - 0x5e0]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00405b4d
mov dword [ebp - 0x238], eax
jmp 0x40353a
mov dword [ebp - 0x238], 0xffffffff
cmp dword [ebp - 0x238], 0xffffffff
jne 0x403a5f
cmp dword [ebp - 0x234], 0
jne 0x4035a8
cmp dword [ebp - 0x114], 2
jne 0x4035a8
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405c51
push 1
push 0x100
push 0x4167c0
push 0x1b76
mov eax, dword [0x415a88]
push eax
call fcn.004046da
push 0
lea eax, [ebp - 0x108]
push eax
push 0x4167c0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x403a92
cmp dword [ebp - 0x238], 0xffffffff
jne 0x4036d6
push 4
push 0x415aa0
lea eax, [ebp - 0x5e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x5e8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov word [ebp - 0x5e4], ax
mov eax, dword [ebp - 0x5e4]
and eax, 0xffff
cmp eax, 2
je 0x403605
mov eax, dword [ebp - 0x5e4]
and eax, 0xffff
cmp eax, 5
jne 0x403669
push 0x118
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], 0
jne 0x403631
mov byte [ebp - 0x3f0], 0
cmp dword [ebp - 0x2d0], 3
jle 0x403650
push 0x4127e0
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x4036d6
push 0x415aa0
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x3f0]
push eax
call fcn.00404a2a
mov dword [ebp - 0x5ec], eax
cmp dword [ebp - 0x5ec], 0
je 0x4036bb
mov eax, dword [ebp - 0x5ec]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x260c], eax
mov eax, dword [ebp - 0x260c]
mov byte [eax], 0
jmp 0x4036c2
mov byte [ebp - 0x3f0], 0
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
mov al, byte [ebp - 0x3f0]
cmp eax, 0x5c
jne 0x403751
xor eax, eax
mov al, byte [ebp - 0x3ef]
cmp eax, 0x5c
jne 0x403751
push 0x104
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x4fc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x4fc]
push eax
call fcn.00404a2a
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x40374c
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 0x2610], eax
mov eax, dword [ebp - 0x2610]
mov byte [eax], 0
jmp 0x40377f
mov al, byte [ebp - 0x3f0]
mov byte [ebp - 0x4fc], al
mov byte [ebp - 0x4fb], 0x3a
mov byte [ebp - 0x4fa], 0x5c
mov byte [ebp - 0x4f9], 0
lea eax, [ebp - 0x4fc]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x4fc]
push eax
call fcn.00402fbd
test eax, eax
jne 0x40384d
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405c51
mov dword [ebp - 0x118], 0x14a
push 1
push 0x100
push 0x4167c0
push 0x1b77
mov eax, dword [0x415a88]
push eax
call fcn.004046da
push 1
push 0x100
push 0x4166a0
push 0x1b78
mov eax, dword [0x415a88]
push eax
call fcn.004046da
push 1
push 0x50
lea eax, [ebp - 0x558]
push eax
push 0x1b79
mov eax, dword [0x415a88]
push eax
call fcn.004046da
lea eax, [ebp - 0x558]
push eax
mov eax, dword [ebp - 0x118]
push eax
push 0x4166a0
push 0x4167c0
push str._s___s__dK__s.
push 0x416ce0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
lea eax, [ebp - 0x3f0]
push eax
push 0x416ce0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x403a92
push 0x1011
lea eax, [ebp - 0x5e0]
push eax
lea eax, [ebp - 0x3f0]
push eax
call fcn.00405b4d
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
jne 0x4038bf
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405c51
push 1
push 0x100
push 0x4167c0
push 0x1b7a
mov eax, dword [0x415a88]
push eax
call fcn.004046da
push 0
lea eax, [ebp - 0x3f0]
push eax
push 0x4167c0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x403a92
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x244], eax
push 0
mov eax, dword [ebp - 0x2d4]
push eax
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405c7d
cmp dword [ebp - 0x244], 0
je 0x4039c3
mov eax, dword [ebp - 0x244]
cmp eax, 0x2000
jb 0x403903
mov eax, 0x2000
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x25f0]
push eax
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405cac
mov dword [ebp - 0x2d0], eax
mov eax, dword [ebp - 0x2d0]
push eax
lea eax, [ebp - 0x25f0]
push eax
mov eax, dword [ebp - 0x238]
push eax
call fcn.00405d0c
mov dword [ebp - 0x2d8], eax
mov eax, dword [ebp - 0x2d0]
cmp dword [ebp - 0x2d8], eax
je 0x4039ae
mov eax, dword [ebp - 0x238]
push eax
call fcn.00405c51
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405c51
push 1
push 0x100
push 0x4167c0
push 0x1b7b
mov eax, dword [0x415a88]
push eax
call fcn.004046da
push 0
lea eax, [ebp - 0x108]
push eax
push 0x4167c0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x403a92
xor eax, eax
sub eax, dword [ebp - 0x2d0]
neg eax
sub dword [ebp - 0x244], eax
jmp 0x4038e0
mov eax, dword [ebp - 0x238]
push eax
call fcn.00405c51
lea eax, [ebp - 0x2604]
push eax
mov eax, dword [ebp - 0x240]
push eax
mov eax, dword [ebp - 0x240]
shr eax, 0x10
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 0x25f8]
push eax
lea eax, [ebp - 0x2604]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x25fc], eax
cmp dword [ebp - 0x25fc], 0xffffffff
je 0x403a5a
lea eax, [ebp - 0x25f8]
push eax
push 0
push 0
mov eax, dword [ebp - 0x25fc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 0x25fc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403a6b
mov eax, dword [ebp - 0x238]
push eax
call fcn.00405c51
mov eax, dword [ebp - 0x234]
add dword [ebp - 0x2d4], eax
jmp 0x40331f
mov eax, dword [ebp - 0x500]
push eax
call fcn.00405c51
mov eax, 1
jmp 0x403a92
pop edi
pop esi
pop ebx
leave
ret 4