Function at 0x408e00
Capabilities:
Create pipe
Get common file path
Get geographical location
Get hostname
Set console window title
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x454
mov eax, dword [0x82507c]
xor eax, esp
mov dword [esp + 0x450], eax
mov edx, dword [0x832194]
push ebx
push esi
xor ebx, ebx
push edi
cmp edx, 0x7c
jne 0x408e83
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x832194], 0x2d
jne 0x408e74
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
call fcn.00401bc0
mov edx, dword [0x832194]
add esp, 4
mov ecx, dword [0x826c80]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x8450db
jne 0x408ea0
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x408eb4
mov dword [0x827e48], edi
mov dword [0x827e4c], esi
inc eax
cmp eax, 0xb9fa618
jl 0x408e93
mov edi, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
mov dword [0x832194], edx
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x562d05
jne 0x408ee4
mov ecx, dword [0x826c74]
mov dword [0x832198], ecx
cmp edx, 0x3c
jne 0x408ef2
push ebx
call edi
mov edx, dword [0x832194]
inc esi
cmp esi, 0x5f6c74
jl 0x408ed0
cmp edx, 0x110a
jne 0x408fce
push ebx
mov dword [0x832060], ebx
mov dword [0x832064], ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [esp + 0x30]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommState]
push ebx
push ebx
call fcn.00401ae1
push ebx
push ebx
call fcn.00401bd6
push 0x30
push 0x82312c
push str._s__c
push 0x827dc0
call fcn.004015bc
xor edx, edx
add esp, 0x20
lea esi, [edx + 1]
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], dx
call fcn.004010f0
push ebx
call fcn.00401b21
add esp, 4
push ebx
push ebx
call fcn.00401bd6
push 0x82312c
push 0x827dc0
call fcn.004015bc
add esp, 0x10
cmp dword [esp + 0x28], 8
jb 0x408fce
mov eax, dword [esp + 0x14]
push eax
call fcn.00401bb5
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x832194]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x831ebc], eax
cmp dword [0x832194], ebx
jbe 0x40903d
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea esp, [esp]
mov edx, dword [0x832198]
mov dword [esp + 0x10], edx
mov eax, 0xa231
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov cl, byte [eax + esi]
mov edx, dword [0x831ebc]
mov byte [edx + esi], cl
cmp dword [0x832194], 0x5ab
jne 0x409034
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x832194]
jb 0x409000
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.msimg32.dll
call esi
call fcn.00408b00
mov eax, dword [0x832194]
mov ecx, dword [0x831ebc]
mov edi, dword [0x825e60]
mov ebx, eax
mov dword [esp + 0x10], ecx
cmp eax, 0x930
jne 0x40907a
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x832194]
mov dword [0x831eb8], edi
cmp eax, 0x114e
jne 0x40909e
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
call esi
mov eax, dword [0x832194]
cmp eax, 0x2f
jne 0x4090bd
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov edx, dword [esp + 0x10]
push ebx
push edx
call fcn.00408c50
add dword [0x831ebc], 0
mov ebx, dword [esp + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
add esp, 8
xor esi, esi
push 0
push 0
push 0
call edi
cmp esi, 0x1a01e
jle 0x4090f9
cmp ebx, 0xf5bed7
jne 0x409102
inc esi
cmp esi, 0x1ece7a52
jl 0x4090e1
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov dword [esp + 0x10], 0x1519a5
mov ebx, 0x8e46a6f0
jmp 0x409120
cmp dword [0x832194], 0xcc1
jne 0x40912e
call edi
cmp dword [0x832194], 0x3dc
mov dword [0x83205c], ebx
jne 0x409146
push 0
push 0
call esi
dec dword [esp + 0x10]
jne 0x409120
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004015ad
mov esp, ebp
pop ebp
ret