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

Disassembly:
push 0xffffffffffffffff
push 0x40a36b
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.00407850
mov eax, dword [0x43707c]
xor eax, esp
mov dword [esp + 0x1064], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43707c]
xor eax, esp
push eax
lea eax, [esp + 0x107c]
mov dword fs:[0], eax
mov edx, dword [0x443e84]
xor ebx, ebx
cmp edx, 0x7c
jne 0x408e32
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 [0x443e84], 0x2d
jne 0x408e0d
push ebx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00401c50
add esp, 4
lea ecx, [esp + 0x18]
push ecx
call fcn.00401120
mov edx, dword [0x443e84]
mov ecx, dword [0x438c80]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x8450db
jne 0x408e4f
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x408e63
mov dword [0x439b38], edi
mov dword [0x439b3c], esi
inc eax
cmp eax, 0xb9fa618
jl 0x408e42
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x443e84], edx
xor esi, esi
lea esp, [esp]
cmp esi, 0x562d05
jne 0x408e92
mov eax, dword [0x438c74]
mov dword [0x443e88], eax
cmp edx, 0x3c
jne 0x408ea0
push ebx
call edi
mov edx, dword [0x443e84]
inc esi
cmp esi, 0x5f6c74
jl 0x408e80
cmp edx, 0x110a
jne 0x408f6e
push ebx
mov dword [0x443d50], ebx
mov dword [0x443d54], 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 + 0x14]
push ecx
lea edx, [esp + 0x7c]
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 + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebx
push ebx
call fcn.00401b71
mov edi, 7
xor ecx, ecx
add esp, 8
lea esi, [edi - 6]
lea eax, [esp + 0x18]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], cx
call fcn.00401180
push ebx
mov dword [esp + 0x1088], ebx
call fcn.00401bb1
push 0x30
push 0x4353cc
push str._s__c
push 0x439ab0
call fcn.0040164c
xor edx, edx
add esp, 0x14
lea eax, [esp + 0x34]
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], dx
call fcn.00401180
push ebx
call fcn.00401f3a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [0x443e84]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x443bac], eax
cmp dword [0x443e84], ebx
jbe 0x408fde
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x408fa0
mov ecx, dword [0x443e88]
mov dword [esp + 0x14], ecx
mov eax, 0xa231
add dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov al, byte [edx + esi]
mov ecx, dword [0x443bac]
mov byte [ecx + esi], al
cmp dword [0x443e84], 0x5ab
jne 0x408fd5
push ebx
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x443e84]
jb 0x408fa0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.msimg32.dll
call esi
call fcn.00408a70
mov eax, dword [0x443e84]
mov ebp, dword [0x443bac]
mov edi, dword [0x437e60]
mov ebx, eax
cmp eax, 0x930
jne 0x409017
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x443e84]
mov dword [0x443ba8], edi
cmp eax, 0x114e
jne 0x40903b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
call esi
mov eax, dword [0x443e84]
cmp eax, 0x2f
jne 0x409060
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0
lea edx, [esp + 0x87c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push ebx
push ebp
call fcn.00408bc0
add dword [0x443bac], 0
mov ebx, dword [esp + 0x60]
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 0x409098
cmp ebx, 0xf5bed7
jne 0x4090a1
inc esi
cmp esi, 0x1ece7a52
jl 0x409080
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [sym.imp.KERNEL32.dll_HeapWalk]
mov ebp, 0x1519a5
mov ebx, 0x8e46a6f0
jmp 0x4090c0
cmp dword [0x443e84], 0xcc1
jne 0x4090ce
call edi
cmp dword [0x443e84], 0x3dc
mov dword [0x443d4c], ebx
jne 0x4090e6
push 0
push 0
call esi
dec ebp
jne 0x4090c0
mov ecx, dword [esp + 0x107c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.0040163d
add esp, 0x1074
ret