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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19f8
call fcn.0040ffc0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [str._1H_4]
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x45940c]
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.004030a0
add dword [ebp - 0x14], 0x23f
cmp dword [0x460c2c], 0x14
jne 0x40310f
push 0
push 0
lea edx, [ebp - 0x11f4]
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 - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x460c2c]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x40315f
mov dword [0x460c28], 0xedeb2e40
jmp 0x40317a
cmp eax, 0x3eb
jne 0x40317a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4606b8], 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 [0x460c2c], 0x9e6
mov dword [0x460c24], 0xf4ea3dee
jne 0x4031b4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
xor dword [ebp - 8], esi
cmp dword [0x460c2c], 0x213
jne 0x40326d
push 0
lea eax, [ebp - 0xdf4]
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 - 0x9f4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
push 0
lea edx, [ebp - 0x1f4]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push 0x402d5c
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 - 0x19f4]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x34]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [ebp - 0xd4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
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 0x403297
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 0x403133
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