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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x15f8
call fcn.0040f0e0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [0x458418]
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ecx, dword [0x45841c]
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.00403030
add dword [ebp - 0x14], 0x23f
cmp dword [0x45fbec], 0x14
jne 0x40309f
push 0
push 0
lea edx, [ebp - 0x9f4]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov eax, dword [0x458420]
mov ecx, dword [0x458424]
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 [0x45fbec]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4030ef
mov dword [0x45fbe8], 0xedeb2e40
jmp 0x40310a
cmp eax, 0x3eb
jne 0x40310a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x45f678], 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 [0x45fbec], 0x9e6
mov dword [0x45fbe4], 0xf4ea3dee
jne 0x403144
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
xor dword [ebp - 8], esi
cmp dword [0x45fbec], 0x213
jne 0x4031fd
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 - 0x15f4]
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 0x402d68
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 - 0x5f4]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
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 [0x45fbec], 0xc
mov dword [ebp - 0x18], esi
jne 0x403227
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 0x4030c3
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