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

Disassembly:
sub esp, 0x990
push ebp
shr edx, 3
xor ebp, ebp
cmp edx, ebp
jbe 0x42f303
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x48], 0x9e3779b9
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], edx
jmp 0x42f084
mov esi, dword [esp + 0x28]
cmp dword [0x668744], 0x5d
jne 0x42f0ff
push ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
lea edx, [esp + 0x5c]
push edx
xor eax, eax
push eax
push ebp
lea ecx, [esp + 0x1ac]
push ecx
push ebp
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0x401258
push 0x401264
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x84]
push edx
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CancelTimerQueueTimer]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x9a4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x3c], edx
call fcn.0042f040
mov ecx, dword [eax + 8]
add dword [esp + 0x10], 0x23f
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], 0x20
mov dword [esp + 0x24], 2
add dword [esp + 0x24], 3
mov esi, dword [esp + 0x18]
mov eax, dword [0x668744]
shl esi, 4
add esi, dword [esp + 0x44]
cmp eax, 0xfa9
jne 0x42f173
mov dword [0x66019c], 0xedeb2e40
jmp 0x42f190
cmp eax, 0x3eb
jne 0x42f190
lea edx, [esp + 0x68]
push edx
push 0x401250
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov dword [0x65cc98], ebp
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor esi, dword [esp + 0x1c]
add eax, ebx
xor eax, esi
cmp dword [0x668744], 0x516
mov dword [0x660198], 0xf4ea3dee
mov dword [esp + 0x14], eax
jne 0x42f262
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push ebp
push ebp
push ebp
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push ebp
lea ecx, [esp + 0x58]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push ebp
lea edx, [esp + 0x64]
push edx
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebp
lea eax, [esp + 0x1a4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x4c]
push ecx
push ebp
lea edx, [esp + 0x70]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
lea eax, [esp + 0x64]
push eax
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x14]
sub edi, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x10]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x24]
mov eax, edi
shr eax, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
add dword [esp + 0x14], eax
mov esi, edi
shl esi, 4
add esi, dword [esp + 0x40]
xor esi, dword [esp + 0x1c]
cmp dword [0x668744], 0x121
jne 0x42f2ba
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_OpenEventA]
xor esi, dword [esp + 0x14]
mov dword [0x46c324], ebp
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
sub dword [esp + 0x10], eax
dec dword [esp + 0x38]
jne 0x42f143
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edi
add eax, 8
dec dword [esp + 0x34]
mov dword [esp + 0x28], eax
jne 0x42f080
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x990
ret 4