Function at 0x403400
Capabilities:
Copy file
Get common file path
Manipulate console buffer

Disassembly:
shr edx, 3
sub esp, 0xa8c
test edx, edx
je 0x40369a
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x44], 0x9e3779b9
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], edx
jmp 0x403434
mov esi, dword [esp + 0x28]
cmp dword [0x2c5e4ec], 0x5d
jne 0x4034c9
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 + 0x6a8]
push ecx
push eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x401238
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthW]
push 0
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x47c]
push eax
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 0x401258
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov eax, dword [esp + 0xaa0]
mov ecx, dword [eax]
mov ebx, dword [esi]
mov edx, dword [eax + 4]
mov edi, dword [esi + 4]
mov dword [esp + 0x3c], ecx
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x34], edx
call fcn.004033f0
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
add dword [esp + 0x10], 0x23f
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], edx
mov ebp, 0x20
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov eax, dword [0x2c5e4ec]
mov esi, ebx
shl esi, 4
add esi, dword [esp + 0x38]
cmp eax, 0xfa9
jne 0x403540
mov dword [0x2c5dc44], 0xedeb2e40
jmp 0x40356b
cmp eax, 0x3eb
jne 0x40356b
lea eax, [esp + 0x60]
push eax
push 0x40122c
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AreAnyAccessesGranted]
mov dword [0x2c5ce50], 0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
shr eax, 5
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x40]
mov dword [0x2c5dc40], 0xf4ea3dee
xor eax, dword [esp + 0x18]
xor eax, esi
cmp dword [0x2c5e4ec], 0x516
mov dword [esp + 0x14], eax
jne 0x403618
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
push 0
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x48]
push edx
push 0
lea eax, [esp + 0x68]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esp + 0x54]
push edx
call esi
lea eax, [esp + 0x4c]
push eax
call esi
mov eax, dword [esp + 0x14]
sub edi, eax
xor edx, edx
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x10]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x20]
mov eax, edi
shr eax, cl
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
add dword [esp + 0x14], eax
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x3c]
mov dword [0x446adc], edx
xor ecx, dword [esp + 0x14]
xor ecx, dword [esp + 0x18]
sub ebx, ecx
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x44]
sub dword [esp + 0x10], eax
dec ebp
jne 0x403512
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov dword [eax + 4], edi
add eax, 8
dec dword [esp + 0x30]
mov dword [esp + 0x28], eax
jne 0x403430
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8c
ret 4