Function at 0x402f0f
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], 0x24
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x2c], esi
xor eax, eax
mov dword [ebp - 0x28], esi
push 4
mov dword [ebp - 0x24], esi
push 0x1000
mov dword [ebp - 0x20], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x10], eax
cmp eax, esi
jne 0x402f59
xor eax, eax
jmp 0x4031db
push 4
push 0x1000
push pe_nt_image_headers32
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x402f8a
push 0x4000
push 0x40
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4031db
push 0
lea eax, [ebp - 4]
push 0x10
push 0x4031e2
push eax
call sub.USER32.dll_DdeInitializeA
test eax, eax
je 0x402fc5
mov edi, 0x4000
push edi
push 0x40
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x4031db
push 0x3ec
xor ebx, ebx
push str.PROGMAN
push dword [ebp - 4]
call sub.USER32.dll_DdeCreateStringHandleA
mov edi, eax
test edi, edi
je 0x4031b0
lea eax, [ebp - 0x34]
push eax
push edi
push edi
push dword [ebp - 4]
call sub.USER32.dll_DdeConnect
push dword [ebp + 8]
push str._CreateGroup__s__
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push 1
push ebx
push ebx
push esi
call fcn.0040e930
add esp, 4
inc eax
push eax
push esi
push dword [ebp - 4]
call sub.USER32.dll_DdeCreateDataHandle
lea ecx, [ebp - 8]
push ecx
push 0x2710
push 0x4050
push ebx
push ebx
push dword [ebp - 0xc]
push 0xffffffffffffffff
push eax
call sub.USER32.dll_DdeClientTransaction
test eax, eax
jne 0x403049
push dword [ebp - 4]
call sub.USER32.dll_DdeGetLastError
mov dword [ebp - 8], eax
push dword [ebp + 8]
push str._ShowGroup__s_2__
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push 1
push ebx
push ebx
push esi
call fcn.0040e930
add esp, 4
inc eax
push eax
push esi
push dword [ebp - 4]
call sub.USER32.dll_DdeCreateDataHandle
lea ecx, [ebp - 8]
push ecx
push 0x2710
push 0x4050
push ebx
push ebx
push dword [ebp - 0xc]
push 0xffffffffffffffff
push eax
call sub.USER32.dll_DdeClientTransaction
test eax, eax
jne 0x4030a0
push dword [ebp - 4]
call sub.USER32.dll_DdeGetLastError
mov dword [ebp - 8], eax
push dword [ebp + 8]
push str._ShowGroup__s_1__
push esi
xor ebx, ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
push 1
push ebx
push ebx
push esi
call fcn.0040e930
add esp, 4
inc eax
push eax
push esi
push dword [ebp - 4]
call sub.USER32.dll_DdeCreateDataHandle
lea ecx, [ebp - 8]
push ecx
push 0x2710
push 0x4050
push ebx
push ebx
push dword [ebp - 0xc]
push 0xffffffffffffffff
push eax
call sub.USER32.dll_DdeClientTransaction
test eax, eax
jne 0x4030f7
push dword [ebp - 4]
call sub.USER32.dll_DdeGetLastError
mov dword [ebp - 8], eax
push 0x415628
push dword [ebp + 0xc]
call fcn.0040ed60
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x40319f
push 0x7c
push ebx
call fcn.0040ee40
add esp, 8
test eax, eax
je 0x403128
mov byte [eax], 0
inc eax
test eax, eax
jne 0x40312d
mov eax, 0x415624
push eax
push ebx
push str._AddItem___s___s__
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 1
push 0
push 0
push esi
call fcn.0040e930
add esp, 4
inc eax
push eax
push esi
push dword [ebp - 4]
call sub.USER32.dll_DdeCreateDataHandle
lea ecx, [ebp - 8]
push ecx
push 0x3e8
push 0x4050
push 0
push 0
push dword [ebp - 0xc]
push 0xffffffffffffffff
push eax
call sub.USER32.dll_DdeClientTransaction
test eax, eax
jne 0x403186
push dword [ebp - 4]
call sub.USER32.dll_DdeGetLastError
mov dword [ebp - 8], eax
push 0x415628
push 0
call fcn.0040ed60
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x403111
push edi
push dword [ebp - 4]
call sub.USER32.dll_DdeFreeStringHandle
push dword [ebp - 0xc]
call sub.USER32.dll_DdeDisconnect
push dword [ebp - 4]
call sub.USER32.dll_DdeUninitialize
mov edi, 0x4000
push edi
push 0x40
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret