Function at 0x403b47
Capabilities:
Get common file path
Get disk information
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc38
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax]
mov eax, dword [eax + 4]
xor esi, esi
cmp dword [0x460ca0], 0x594
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], eax
jne 0x403b85
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov eax, dword [0x451738]
mov dword [ebp - 0x24], eax
mov eax, dword [0x45173c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00403b40
mov eax, dword [0x451740]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [0x451744]
add ebx, 0x23f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, edi
shl eax, 4
cmp dword [0x460ca0], 0xc
mov dword [ebp - 4], eax
jne 0x403c2a
lea eax, [ebp - 0x438]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0xc38]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x460ca0]
cmp eax, 0xfa9
jne 0x403c46
mov dword [0x46023c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403c53
mov dword [0x45fbe8], esi
mov ecx, dword [ebp - 0xc]
mov edx, edi
shr edx, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x10], eax
mov dword [0x460238], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x460ca0], 0x213
mov dword [ebp - 0x14], edx
jne 0x403c90
push 0x4035f4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x460ca0], 0xc
jne 0x403cbd
lea eax, [ebp - 0x14]
push eax
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_BackupRead]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00403b3a
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
lea ecx, [ebx + eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0xc]
shr eax, cl
add eax, dword [ebp - 0x2c]
mov ecx, eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor dword [ebp - 4], ecx
sub edi, dword [ebp - 4]
add ebx, 0x61c88647
dec dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
jne 0x403bc0
cmp dword [0x460ca0], 0xa6d
mov ebx, dword [ebp + 8]
mov dword [ebx], edi
jne 0x403d18
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov dword [ebx + 4], eax
pop ebx
leave
ret 4