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, 0x1a78
call fcn.0040ff90
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x48d408]
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x48d40c]
mov dword [ebp - 0x2c], eax
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], ecx
call fcn.00403090
add dword [ebp - 0x14], 0x23f
cmp dword [0x494c2c], 0x14
jne 0x4030ff
push 0
push 0
lea edx, [ebp - 0xa74]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov eax, dword [str._ay8]
mov ecx, dword [0x48d414]
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 - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x494c2c]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40314f
mov dword [0x494c28], 0xedeb2e40
jmp 0x40316a
cmp eax, 0x3eb
jne 0x40316a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4946b8], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
lea ecx, [edx + eax]
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x28]
add dword [ebp - 8], edx
xor esi, ecx
cmp dword [0x494c2c], 0x9e6
mov dword [0x494c24], 0xf4ea3dee
jne 0x4031a4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
xor dword [ebp - 8], esi
cmp dword [0x494c2c], 0x213
jne 0x40325d
push 0
lea eax, [ebp - 0x674]
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 - 0x1274]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
push 0
lea edx, [ebp - 0x15c]
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 - 0x1a74]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [ebp - 0x18]
sub esi, dword [ebp - 8]
cmp dword [0x494c2c], 0xc
mov dword [ebp - 0x18], esi
jne 0x403287
lea ecx, [ebp - 0x30]
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, esi
shr edx, 5
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov eax, esi
shl eax, 4
add eax, dword [ebp - 0x2c]
lea edx, [ecx + esi]
xor eax, edx
xor eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub dword [ebp - 0xc], eax
add ecx, 0x61c88647
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], ecx
jne 0x403123
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
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