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

Disassembly:
shr edx, 3
sub esp, 0xa94
test edx, edx
je 0x40389c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x48], 0x9e3779b9
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], edx
jmp 0x4035f4
mov esi, dword [esp + 0x28]
cmp dword [0x6492e4], 0x5d
jne 0x403684
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
xor eax, eax
lea edx, [esp + 0x5c]
push edx
push eax
push eax
lea ecx, [esp + 0x2b0]
push ecx
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0x40124c
push 0x401258
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x84]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CancelTimerQueueTimer]
push 0
push 0x401288
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 + 0xaa8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], edx
call fcn.004035b0
mov ecx, dword [eax + 8]
add dword [esp + 0x10], 0x23f
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x38], 0x20
lea esp, [esp]
mov dword [esp + 0x24], 2
add dword [esp + 0x24], 3
mov esi, dword [esp + 0x18]
mov eax, dword [0x6492e4]
shl esi, 4
add esi, dword [esp + 0x44]
cmp eax, 0xfa9
jne 0x403700
mov dword [0x640d3c], 0xedeb2e40
jmp 0x403721
cmp eax, 0x3eb
jne 0x403721
lea edx, [esp + 0x68]
push edx
push 0x401240
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov dword [0x63d838], 0
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, ebp
xor eax, esi
cmp dword [0x6492e4], 0x516
mov dword [0x640d38], 0xf4ea3dee
mov dword [esp + 0x14], eax
jne 0x4037ef
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0
lea eax, [esp + 0x58]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push 0
lea ecx, [esp + 0x64]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
lea edx, [esp + 0x2a8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [esp + 0x4c]
push eax
push 0
lea ecx, [esp + 0x70]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
lea edx, [esp + 0x64]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [esp + 0x50]
push eax
call ebx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
lea ecx, [esp + 0x58]
push ecx
call ebx
mov eax, dword [esp + 0x14]
sub edi, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
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 edx, edi
shr edx, cl
mov dword [esp + 0x14], edx
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 [0x6492e4], 0x121
jne 0x40384e
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
xor esi, dword [esp + 0x14]
mov dword [0x44cec4], 0
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 0x4036d0
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 0x4035f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa94
ret 4