Function at 0x409d60
Capabilities:
Connect pipe
Get common file path
Get geographical location
Get hostname
Set current directory

Disassembly:
sub esp, 0x944
mov eax, dword [0x821004]
xor eax, esp
mov dword [esp + 0x940], eax
mov edx, dword [0x2f47f24]
push ebp
push esi
xor ebp, ebp
push edi
cmp edx, 0x7c
jne 0x409df5
push ebp
push ebp
call dword [sym.imp.USER32.dll_LoadIconA]
push ebp
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_IsBadHugeReadPtr]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x2f47f24], 0x2d
jne 0x409dd0
push ebp
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00401267
add esp, 4
lea edx, [esp + 0x10]
push edx
call section..text
mov edx, dword [0x2f47f24]
mov ecx, dword [0x822cf0]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x8450db
jne 0x409e12
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x409e26
mov dword [0x823b00], edi
mov dword [0x823b04], esi
inc eax
cmp eax, 0xb9fa618
jl 0x409e05
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x2f47f24], edx
xor esi, esi
lea esp, [esp]
cmp esi, 0x562d05
jne 0x409e52
mov eax, dword [0x822ce4]
mov dword [0x2f47f28], eax
cmp edx, 0x3c
jne 0x409e60
push ebp
call edi
mov edx, dword [0x2f47f24]
inc esi
cmp esi, 0x5f6c74
jl 0x409e40
cmp edx, 0x110a
jne 0x409ef8
push ebp
mov dword [0x2f47df0], ebp
mov dword [0x2f47df4], ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push ebp
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_LockFile]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebp
push ebp
call fcn.004010ee
push str.0__s__d__f
call fcn.0040123f
push ebp
call fcn.0040112e
push ebp
call fcn.0040112e
push 0x81fa3c
push 0x823a78
call fcn.0040106a
add esp, 0x1c
push ebp
call fcn.00401500
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [0x2f47f24]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x2f47c4c], eax
cmp dword [0x2f47f24], ebp
jbe 0x409f6e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x409f30
mov edx, dword [0x2f47f28]
mov dword [esp + 0xc], edx
mov eax, 0xa231
add dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov cl, byte [eax + esi]
mov edx, dword [0x2f47c4c]
mov byte [edx + esi], cl
cmp dword [0x2f47f24], 0x5ab
jne 0x409f65
push ebp
push ebp
push ebp
push ebp
call edi
inc esi
cmp esi, dword [0x2f47f24]
jb 0x409f30
push ebx
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00409a10
call fcn.00409c70
call fcn.00409a00
mov ebx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
xor esi, esi
push ebp
push ebp
push ebp
call edi
cmp esi, 0x1a01e
jle 0x409faa
cmp ebx, 0xf5bed7
jne 0x409fb3
inc esi
cmp esi, 0x1ece7a52
jl 0x409f95
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 + 0x10], 0x1519a5
mov ebp, 0x8e46a6f0
cmp dword [0x2f47f24], 0xcc1
jne 0x409fe0
call ebx
cmp dword [0x2f47f24], 0x3dc
mov dword [0x2f47dec], ebp
jne 0x40a000
push 0
push 0
push 0
push 0
call esi
push 0
call edi
dec dword [esp + 0x10]
jne 0x409fd2
mov ecx, dword [esp + 0x950]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0040105b
add esp, 0x944
ret