Function at 0x402f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff76c
push edi
push esi
push ebx
push 0x600
push 0
lea eax, [ebp - 0x88c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ebx, dword [ebp + 8]
push 0x40
push 0x1000
push dword [ebx + 0x1c]
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x288], eax
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebp - 0x288]
call fcn.0040dcff
lea eax, [ebp - 0x268]
push eax
call sub.ole32.dll_CoCreateGuid
mov dword [ebx + 0x28], section..text
mov dword [ebx + 0x40], section..text
mov dword [ebx + 0x34], section..text
mov dword [ebx + 0x4c], section..text
push dword [ebp - 0x288]
call fcn.0040eee0
mov esi, dword [ebp - 0x288]
add esi, dword [esi + 0x3c]
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x26c], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x270], eax
mov eax, dword [ebx + 0x34]
shr eax, 1
mov dword [esi + 8], eax
push 0x1010
push dword [ebp - 0x288]
call fcn.00401d30
add eax, dword [ebx + 8]
add eax, dword [ebp - 0x288]
mov dword [ebx + 0x20], eax
mov eax, 0x1010
add eax, dword [ebx + 8]
add eax, dword [ebp - 0x26c]
mov dword [ebx + 0x38], eax
add esi, 0xf8
mov edi, dword [ebp - 0x288]
add edi, dword [esi + 0x14]
add edi, dword [esi + 0x10]
sub edi, 4
xor eax, eax
jmp 0x402ffc
sub edi, 4
cmp dword [edi], eax
je 0x402ff9
add edi, 0x10
mov dword [ebp - 0x280], edi
push 0x1010
push dword [ebp - 0x288]
call fcn.00401d30
mov edx, eax
add edx, dword [ebp - 0x288]
add edx, dword [ebx + 8]
sub edi, edx
add edi, 3
and edi, 0xfffffff0
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x3c], edi
mov eax, dword [ebp - 0x288]
add eax, dword [esi + 0x14]
add eax, dword [esi + 0x10]
sub eax, dword [ebp - 0x280]
mov dword [ebp - 0x284], eax
add esi, 0x28
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 0x26c]
mov dword [ebp - 0x28c], eax
add dword [ebp - 0x28c], 0x3e8
add esi, 0x28
mov eax, dword [ebp - 0x26c]
add eax, dword [esi + 0xc]
mov dword [ebx + 0x44], eax
push dword [esi + 0xc]
push dword [ebp - 0x288]
call fcn.00401d30
add eax, dword [ebp - 0x288]
mov dword [ebx + 0x2c], eax
mov eax, dword [esi + 0x10]
add eax, 3
and eax, 0xfffffff0
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x48], eax
push ebx
call fcn.00403240
mov edx, 0x1010
add edx, dword [ebp - 0x26c]
push edx
push dword [ebx + 8]
push dword [ebp - 0x28c]
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x27c]
push eax
push dword [ebx + 0xc]
push dword [ebx + 0x10]
call fcn.0040e710
pushal
push 0x1010
push dword [ebp - 0x288]
call fcn.00401d30
add eax, dword [ebp - 0x288]
mov edi, eax
sub edi, 0x10
add edi, 0x100
push 0xf00
push edi
call fcn.00403550
popal
push 0x1010
push dword [ebp - 0x288]
call fcn.00401d30
add eax, dword [ebp - 0x288]
mov ecx, dword [ebx + 8]
sub ecx, dword [ebp - 0x278]
add eax, ecx
mov esi, dword [ebp - 0x288]
add esi, dword [esi + 0x3c]
add ecx, 0x1010
mov dword [esi + 0x28], ecx
push dword [ebp - 0x278]
push dword [ebp - 0x27c]
push eax
call fcn.0040dcff
lea ecx, [ebp - 0x268]
mov eax, dword [ecx]
add eax, dword [ecx + 1]
xor edx, edx
mov ecx, dword [ebp - 0x284]
sub ecx, dword [ebx + 0x14]
sub ecx, 0x10
div ecx
push edx
push dword [ebp - 0x288]
call fcn.0040f030
add eax, dword [ebp - 0x280]
sub eax, dword [ebp - 0x288]
mov dword [ebp - 0x894], eax
push dword [ebp - 0x894]
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x88c]
push eax
call fcn.00403280
push dword [ebp - 0x890]
lea eax, [ebp - 0x88c]
push eax
push dword [ebp - 0x894]
push dword [ebp - 0x288]
call fcn.004034d0
push 0x1010
push dword [ebp - 0x288]
call fcn.00401d30
add eax, dword [ebp - 0x288]
sub eax, 0x10
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x34], eax
push 0x100
push eax
call fcn.00403550
lea eax, [ebx + 0x20]
push eax
call fcn.00403210
push dword [ebp - 0x288]
call fcn.0040e600
push 0x8000
push 0
push dword [ebp - 0x27c]
call sub.kernel32.dll_VirtualFree
mov eax, dword [ebp - 0x288]
pop ebx
pop esi
pop edi
leave
ret 4