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

Disassembly:
push 0xffffffffffffffff
push 0x40a32b
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x46207c]
xor eax, esp
mov dword [esp + 0x868], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46207c]
xor eax, esp
push eax
lea eax, [esp + 0x880]
mov dword fs:[0], eax
mov edx, dword [0x46ee84]
xor ebp, ebp
cmp edx, 0x7c
jne 0x408e5e
push ebp
push ebp
call dword [sym.imp.USER32.dll_LoadIconA]
push ebp
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
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 [0x46ee84], 0x2d
jne 0x408e39
push ebp
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
push ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.00401c50
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401120
mov edx, dword [0x46ee84]
mov ecx, dword [0x463c80]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
mov edi, edi
cmp eax, 0x8450db
jne 0x408e7d
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x408e91
mov dword [0x464b38], edi
mov dword [0x464b3c], esi
inc eax
cmp eax, 0xb9fa618
jl 0x408e70
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x46ee84], edx
xor esi, esi
cmp esi, 0x562d05
jne 0x408eb9
mov eax, dword [0x463c74]
mov dword [0x46ee88], eax
cmp edx, 0x3c
jne 0x408ec7
push ebp
call edi
mov edx, dword [0x46ee84]
inc esi
cmp esi, 0x5f6c74
jl 0x408ea7
cmp edx, 0x110a
jne 0x408faa
push ebp
mov dword [0x46ed50], ebp
mov dword [0x46ed54], ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push ebp
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_LockFile]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x80]
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 + 0x54]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebp
push ebp
call fcn.00401b71
mov edi, 7
xor ecx, ecx
add esp, 8
lea esi, [edi - 6]
lea eax, [esp + 0x1c]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], cx
call fcn.00401180
push ebp
mov dword [esp + 0x88c], ebp
call fcn.00401bb1
push 0x30
push 0x4601fc
push str._s__c
push 0x464ab0
call fcn.0040164c
xor edx, edx
add esp, 0x14
lea eax, [esp + 0x38]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ebp
mov word [esp + 0x38], dx
call fcn.00401180
push 0x4601fc
push 0x464ab0
call fcn.0040164c
add esp, 8
push ebp
call fcn.00401f3a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [0x46ee84]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x46ebac], eax
cmp dword [0x46ee84], ebp
jbe 0x40901e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x408fe0
mov ecx, dword [0x46ee88]
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 [0x46ebac]
mov byte [ecx + esi], al
cmp dword [0x46ee84], 0x5ab
jne 0x409015
push ebp
push ebp
push ebp
push ebp
call edi
inc esi
cmp esi, dword [0x46ee84]
jb 0x408fe0
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call fcn.00408a70
call fcn.00408cd0
call fcn.00408a60
mov ebx, dword [esp + 0x5c]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
xor esi, esi
push ebp
push ebp
push ebp
call edi
cmp esi, 0x1a01e
jle 0x409059
cmp ebx, 0xf5bed7
jne 0x409062
inc esi
cmp esi, 0x1ece7a52
jl 0x409044
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov esi, dword [sym.imp.KERNEL32.dll_HeapWalk]
mov ebp, 0x1519a5
mov ebx, 0x8e46a6f0
jmp 0x409080
cmp dword [0x46ee84], 0xcc1
jne 0x40908e
call edi
cmp dword [0x46ee84], 0x3dc
mov dword [0x46ed4c], ebx
jne 0x4090a6
push 0
push 0
call esi
dec ebp
jne 0x409080
mov ecx, dword [esp + 0x880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x868]
xor ecx, esp
call fcn.0040163d
add esp, 0x878
ret