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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.0040f6d0
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 [0x4b6ca0], 0x594
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], eax
jne 0x403bc9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
lea eax, [ebp - 0x838]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [0x4a7738]
mov dword [ebp - 0x24], eax
mov eax, dword [0x4a773c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00403b80
mov eax, dword [0x4a7740]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4a7744]
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 [0x4b6ca0], 0xc
mov dword [ebp - 4], eax
jne 0x403c6e
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 - 0x1038]
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 [0x4b6ca0]
cmp eax, 0xfa9
jne 0x403c8a
mov dword [0x4b623c], 0xedeb2e40
cmp eax, 0x3eb
jne 0x403c97
mov dword [0x4b5be8], esi
mov ecx, dword [ebp - 0xc]
mov edx, edi
shr edx, cl
lea eax, [ebx + edi]
mov dword [ebp - 0x10], eax
mov dword [0x4b6238], 0xf4ea3dee
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x4b6ca0], 0x213
mov dword [ebp - 0x14], edx
jne 0x403cd4
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 [0x4b6ca0], 0xc
jne 0x403d01
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.00403b7a
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 0x403c04
cmp dword [0x4b6ca0], 0xa6d
mov ebx, dword [ebp + 8]
mov dword [ebx], edi
jne 0x403d5c
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