Function at 0x4a0860
Capabilities:
Get common file path
Get file attributes
Manipulate console buffer
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4a4004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CancelTimerQueueTimer]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
mov edi, 0x3661b338
cmp dword [0x1f78de4], 0xc31
jne 0x4a0896
push 0
push 0
call ebx
push 0
call esi
dec edi
jne 0x4a0884
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ebx, ebx
xor esi, esi
cmp esi, 0x562d05
jne 0x4a08b9
mov eax, dword [0x4a5bd4]
mov dword [0x1f7916c], eax
cmp dword [0x1f78de4], 0x3c
jne 0x4a08c5
push ebx
call edi
inc esi
cmp esi, 0x5f6c74
jl 0x4a08a7
cmp dword [0x1f78de4], 0x7c
jne 0x4a0939
push ebx
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push ebx
call dword [sym.imp.USER32.dll_SetKeyboardState]
push ebx
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push ebx
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalShrink]
cmp dword [0x1f78de4], 0x2d
jne 0x4a0927
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0x4a2a34
push 0x4a6980
call fcn.0040110b
add esp, 8
cmp dword [0x1f78de4], 0x110a
jne 0x4a09a1
mov dword [0x1f78dd8], ebx
mov dword [0x1f78ddc], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
push ebx
push ebx
call fcn.00401037
push ebx
call fcn.00401077
push ebx
push ebx
call fcn.00401037
push ebx
push ebx
call fcn.00401037
push ebx
call fcn.0040100f
add esp, 0x20
call fcn.004a05a0
xor esi, esi
cmp dword [0x1f78de4], ebx
jbe 0x4a09fd
mov edi, dword [sym.imp.KERNEL32.dll_ReplaceFileW]
jmp 0x4a09c0
mov edx, dword [0x1f7916c]
mov dword [ebp - 8], edx
mov eax, 0xa231
add dword [ebp - 8], eax
cmp dword [0x1f78de4], 0x5ab
mov eax, dword [ebp - 8]
mov cl, byte [eax + esi]
mov edx, dword [0x1f78b08]
mov byte [edx + esi], cl
jne 0x4a09f4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x1f78de4]
jb 0x4a09c0
call fcn.004a0650
call fcn.004a05d0
call fcn.004a07f0
call fcn.004a05c0
mov ebx, dword [ebp - 0x2c]
mov edi, dword [sym.imp.USER32.dll_GetClassLongW]
xor esi, esi
lea esp, [esp]
push 0
push 0
call edi
cmp esi, 0x1a01e
jle 0x4a0a36
cmp ebx, 0xf5bed7
jne 0x4a0a3f
inc esi
cmp esi, 0x1ece7a52
jl 0x4a0a20
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebx, dword [sym.imp.KERNEL32.dll_TzSpecificLocalTimeToSystemTime]
xor esi, esi
lea ecx, [ecx]
cmp esi, 0x12e6c3
jne 0x4a0a5d
call fcn.004a0590
cmp dword [0x1f78de4], 0x3dc
mov dword [0x1f78b0c], 0x8e46a6f0
jne 0x4a0a8a
xor eax, eax
lea edx, [ebp - 0xc]
push edx
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
call edi
push 0
push 0
push 0
call ebx
inc esi
cmp esi, 0x1519a5
jl 0x4a0a50
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret