Function at 0x408d10
Capabilities:
Connect 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, 0x854
mov eax, dword [0x44507c]
xor eax, esp
mov dword [esp + 0x850], eax
mov edx, dword [0x451e94]
push ebx
push esi
xor ebx, ebx
push edi
cmp edx, 0x7c
jne 0x408da0
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadHugeReadPtr]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x451e94], 0x2d
jne 0x408d7b
push ebx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.00401c50
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call fcn.004010f0
mov edx, dword [0x451e94]
mov ecx, dword [0x446c80]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x8450db
jne 0x408dbd
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x408dd1
mov dword [0x447b48], edi
mov dword [0x447b4c], esi
inc eax
cmp eax, 0xb9fa618
jl 0x408db0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x451e94], edx
xor esi, esi
cmp esi, 0x562d05
jne 0x408df9
mov eax, dword [0x446c74]
mov dword [0x451e98], eax
cmp edx, 0x3c
jne 0x408e07
push ebx
call edi
mov edx, dword [0x451e94]
inc esi
cmp esi, 0x5f6c74
jl 0x408de7
cmp edx, 0x110a
jne 0x408ed8
push ebx
mov dword [0x451d60], ebx
mov dword [0x451d64], ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LockFile]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebx
push ebx
call fcn.00401b71
push ebx
call fcn.00401bb1
push 0x30
push 0x44381c
push str._s__c
push 0x447ac0
call fcn.0040161c
xor ecx, ecx
add esp, 0x1c
lea esi, [ecx + 1]
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
call fcn.00401150
push 0x44381c
push 0x447ac0
call fcn.0040161c
push ebx
call fcn.004016a0
add esp, 0xc
cmp dword [esp + 0x28], 8
jb 0x408ed8
mov edx, dword [esp + 0x14]
push edx
call fcn.00401c45
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [0x451e94]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x451bbc], eax
cmp dword [0x451e94], ebx
jbe 0x408f4d
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x408f10
mov ecx, dword [0x451e98]
mov dword [esp + 0x10], ecx
mov eax, 0xa231
add dword [esp + 0x10], eax
mov edx, dword [esp + 0x10]
mov al, byte [edx + esi]
mov ecx, dword [0x451bbc]
mov byte [ecx + esi], al
cmp dword [0x451e94], 0x5ab
jne 0x408f44
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x451e94]
jb 0x408f10
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.msimg32.dll
call esi
call fcn.00408a40
mov eax, dword [0x451e94]
mov edx, dword [0x451bbc]
mov edi, dword [str._vCes]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp eax, 0x930
jne 0x408f8a
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x451e94]
mov dword [0x451bb8], edi
cmp eax, 0x114e
jne 0x408fac
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
push 0
call esi
mov eax, dword [0x451e94]
cmp eax, 0x2f
jne 0x408fce
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0
lea eax, [esp + 0x5c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov edi, ebx
mov ebx, dword [esp + 0x10]
call fcn.00408b90
add dword [0x451bbc], 0
mov ebx, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
xor esi, esi
push 0
push 0
push 0
call edi
cmp esi, 0x1a01e
jle 0x409007
cmp ebx, 0xf5bed7
jne 0x409010
inc esi
cmp esi, 0x1ece7a52
jl 0x408fef
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [sym.imp.KERNEL32.dll_HeapWalk]
mov dword [esp + 0x10], 0x1519a5
mov ebx, 0x8e46a6f0
lea esp, [esp]
cmp dword [0x451e94], 0xcc1
jne 0x40903e
call edi
cmp dword [0x451e94], 0x3dc
mov dword [0x451d5c], ebx
jne 0x409056
push 0
push 0
call esi
dec dword [esp + 0x10]
jne 0x409030
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040160d
mov esp, ebp
pop ebp
ret