Function at 0x46ea90
Capabilities:
Connect pipe
Get common file path
Get file attributes
Get geographical location
Manipulate console buffer
Move file
Query environment variable
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x14f4
call fcn.00407380
mov eax, dword [0x476004]
xor eax, esp
mov dword [esp + 0x14f0], eax
mov edx, dword [0x477340]
mov ecx, dword [0x2b760c4]
push ebx
push esi
push edi
xor eax, eax
mov edi, 0xec58ae8c
or esi, 0xffffffff
cmp eax, 0x4f9
jne 0x46ead4
lea ecx, [edx + 0x9e49]
cmp ecx, 0xbcf
jne 0x46eae8
mov dword [0x478138], edi
mov dword [0x47813c], esi
inc eax
cmp eax, 0x117e446
jl 0x46eac7
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [0x2b760c4], ecx
xor esi, esi
mov edi, edi
cmp esi, 0x56051f
jne 0x46eb12
mov eax, dword [0x476ee8]
mov dword [0x2b761f4], eax
cmp ecx, 0x3c
jne 0x46eb23
push 0
push 0
call edi
mov ecx, dword [0x2b760c4]
inc esi
cmp esi, 0x4cab834c
jl 0x46eb00
mov edi, dword [sym.imp.KERNEL32.dll_SetCommMask]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea ebx, [ebx]
push 0
push 0
call edi
call ebx
cmp esi, 0x24c2d
jg 0x46eb59
inc esi
cmp esi, 0xee1cb
jl 0x46eb40
xor ebx, ebx
cmp dword [0x2b760c4], 0x2a
jne 0x46ec8b
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
lea edx, [esp + 0x504]
push edx
push ebx
push ebx
push ebx
mov dword [0x2b760b8], ebx
mov dword [0x2b760bc], ebx
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
lea eax, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeExW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push ebx
xor eax, eax
lea edx, [esp + 0xcfc]
push edx
push str.cazeguxuz
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov word [esp + 0x36], ax
lea eax, [esp + 0x28]
push eax
push ebx
xor ecx, ecx
push ebx
mov word [esp + 0x34], cx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
xor ecx, ecx
xor edx, edx
mov word [esp + 0x10], cx
mov word [esp + 0x12], dx
mov eax, dword [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push ebx
push ebx
lea ecx, [esp + 0x100]
push ecx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push ebx
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.00401528
push ebx
call fcn.00407634
add esp, 0x14
push ebx
call fcn.0040764e
add esp, 4
push ebx
push ebx
call fcn.0040100f
push ebx
call fcn.004012ff
add esp, 0xc
push ebx
push ebx
push ebx
call fcn.0040127b
add esp, 0xc
push ebx
call fcn.00401511
add esp, 4
cmp dword [0x2b760c4], 0x7c
jne 0x46ed77
push ebx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push ebx
lea eax, [esp + 0xcfc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0x2e
lea ecx, [esp + 0x34]
push ebx
push ecx
mov dword [esp + 0x38], ebx
call fcn.00405260
add esp, 0xc
push ebx
lea edx, [esp + 0x30]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push ebx
push ebx
push ebx
lea eax, [esp + 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasA]
push str.babihopulaf
push str.valedesapah
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push ebx
push ebx
push ebx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebx
lea eax, [esp + 0x4fc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
cmp dword [0x2b760c4], 0x2d
jne 0x46ed65
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push ebx
call fcn.004013c9
add esp, 4
push ebx
call fcn.004013df
add esp, 4
mov ecx, dword [0x2b760c4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [0x2b760c4]
mov esi, eax
xor ecx, ecx
mov dword [0x2b75f0c], esi
cmp edx, ebx
jbe 0x46edc1
mov edi, dword [0x2b761f4]
nop
mov al, byte [edi + ecx + 0x9e49]
mov byte [esi + ecx], al
cmp edx, 0x8d
jne 0x46edbc
mov dword [0x2b75f10], 0x17bc
inc ecx
cmp ecx, edx
jb 0x46eda0
call fcn.0046e8a0
call fcn.0046e760
call fcn.0046ea30
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, dword [sym.imp.KERNEL32.dll_GetStdHandle]
xor esi, esi
mov edi, edi
cmp dword [0x2b760c4], 0x41
jne 0x46edf1
push 0
call edi
push 0
call ebx
cmp esi, 0xd606b
jne 0x46edfe
call fcn.0046e750
cmp dword [0x2b760c4], 0xc
jne 0x46ee18
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call dword [sym.imp.KERNEL32.dll_GetACP]
inc esi
cmp esi, 0x24e87d
jl 0x46ede0
mov esi, dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov ebx, 0x1dfefd
mov edi, 0x8e4e015c
jmp 0x46ee40
cmp dword [0x2b760c4], 0x7c4
mov dword [0x2b75f14], edi
jne 0x46ee6f
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x14], dx
mov word [esp + 0x16], ax
mov edx, dword [esp + 0x14]
push edx
push eax
push eax
push eax
call esi
sub ebx, 1
jne 0x46ee40
mov ecx, dword [esp + 0x34]
xor eax, eax
lea ebx, [ebx]
cmp eax, 0x408e
jle 0x46ee8f
cmp ecx, 0xf5bed7
jne 0x46ee97
inc eax
cmp eax, 0x687ed2
jl 0x46ee80
mov ecx, dword [esp + 0x14fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret