Function at 0x402bf0
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.0040d76f
lea eax, [ebp - 0x268]
push eax
call sub.ole32.dll_CoCreateGuid
lea eax, [ebp - 0x268]
mov ecx, dword [eax]
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x40], ecx
mov ecx, dword [eax + 4]
mov dword [ebx + 0x34], ecx
mov dword [ebx + 0x4c], ecx
push dword [ebp - 0x288]
call fcn.0040e8f0
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 0x402cd7
sub edi, 4
cmp dword [edi], eax
je 0x402cd4
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
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]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x48], eax
push ebx
call fcn.00402ee0
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.0040e180
pushal
push 0x1010
push dword [ebp - 0x288]
call fcn.00401d30
add eax, dword [ebp - 0x288]
mov edi, eax
sub edi, 0x10
mov ebp, 0x1000
mov esi, dword [ebx + 0x28]
call fcn.00402a24
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.0040d76f
mov eax, dword [ebx + 0x28]
add eax, dword [ebx + 0x40]
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.0040ea40
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.00402f20
push dword [ebp - 0x890]
lea eax, [ebp - 0x88c]
push eax
push dword [ebp - 0x894]
push dword [ebp - 0x288]
call fcn.00403170
lea eax, [ebx + 0x20]
push eax
call fcn.00402eb0
push dword [ebp - 0x288]
call fcn.0040e070
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