Function at 0x4030a0
Capabilities:
Copy file
Get common file path
Get disk information
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a80
call fcn.0040ff90
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x459408]
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [0x45940c]
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x2c], 0x9e3779b9
mov dword [ebp - 0x30], ecx
call fcn.00403090
add dword [ebp - 0xc], 0x23f
cmp dword [0x460c2c], 0x14
jne 0x403106
push 0
push 0
lea edx, [ebp - 0xa7c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov eax, dword [0x459410]
mov ecx, dword [0x459414]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov ebx, dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov esi, dword [ebp - 0x10]
mov eax, dword [0x460c2c]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x403156
mov dword [0x460c28], 0xedeb2e40
jmp 0x403171
cmp eax, 0x3eb
jne 0x403171
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4606b8], 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x28]
add dword [ebp - 8], edx
xor esi, ecx
cmp dword [0x460c2c], 0x9e6
mov dword [0x460c24], 0xf4ea3dee
jne 0x4031ab
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
xor dword [ebp - 8], esi
cmp dword [0x460c2c], 0x213
jne 0x403264
push 0
lea eax, [ebp - 0x67c]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x127c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
push 0
lea edx, [ebp - 0x164]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0x402d4c
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea eax, [ebp - 0x1a7c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 8]
cmp dword [0x460c2c], 0xc
mov dword [ebp - 0x18], esi
jne 0x40328e
lea ecx, [ebp - 0x40]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, dword [ebp - 0xc]
mov eax, esi
shr eax, 5
lea ecx, [edx + esi]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
shl esi, 4
add esi, dword [ebp - 0x20]
xor esi, dword [ebp - 8]
xor esi, ecx
mov dword [ebp - 0x34], esi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x1c], 1
jne 0x40312a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
pop edi
pop esi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret 4