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
sub esp, 0xc68
mov eax, dword [0x43e07c]
xor eax, esp
mov dword [esp + 0xc64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43e07c]
xor eax, esp
push eax
lea eax, [esp + 0xc7c]
mov dword fs:[0], eax
mov edx, dword [0x44ae84]
xor ebx, ebx
cmp edx, 0x7c
jne 0x408e2e
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 [0x44ae84], 0x2d
jne 0x408e09
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 [0x44ae84]
mov ecx, dword [0x43fc80]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
mov edi, edi
cmp eax, 0x8450db
jne 0x408e4d
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x408e61
mov dword [0x440b38], edi
mov dword [0x440b3c], esi
inc eax
cmp eax, 0xb9fa618
jl 0x408e40
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x44ae84], edx
xor esi, esi
cmp esi, 0x562d05
jne 0x408e89
mov eax, dword [0x43fc74]
mov dword [0x44ae88], eax
cmp edx, 0x3c
jne 0x408e97
push ebx
call edi
mov edx, dword [0x44ae84]
inc esi
cmp esi, 0x5f6c74
jl 0x408e77
cmp edx, 0x110a
jne 0x408f68
push ebx
mov dword [0x44ad50], ebx
mov dword [0x44ad54], 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 + 0x47c]
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 + 0xc88], ebx
call fcn.00401bb1
push 0x30
push 0x43cda4
push str._s__c
push 0x440ab0
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 [0x44ae84]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x44abac], eax
cmp dword [0x44ae84], ebx
jbe 0x408fde
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x408fa0
mov ecx, dword [0x44ae88]
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 [0x44abac]
mov byte [ecx + esi], al
cmp dword [0x44ae84], 0x5ab
jne 0x408fd5
push ebx
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x44ae84]
jb 0x408fa0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.msimg32.dll
call esi
call fcn.00408a70
mov eax, dword [0x44ae84]
mov ebp, dword [0x44abac]
mov edi, dword [0x43ee60]
mov ebx, eax
cmp eax, 0x930
jne 0x409017
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x44ae84]
mov dword [0x44aba8], 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 [0x44ae84]
cmp eax, 0x2f
jne 0x40905d
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
push 0
lea edx, [esp + 0x7c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
push ebx
push ebp
call fcn.00408bc0
add dword [0x44abac], 0
mov ebx, dword [esp + 0x60]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
add esp, 8
xor esi, esi
lea ecx, [ecx]
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 [0x44ae84], 0xcc1
jne 0x4090ce
call edi
cmp dword [0x44ae84], 0x3dc
mov dword [0x44ad4c], ebx
jne 0x4090e6
push 0
push 0
call esi
dec ebp
jne 0x4090c0
mov ecx, dword [esp + 0xc7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc64]
xor ecx, esp
call fcn.0040163d
add esp, 0xc74
ret