Function at 0x40be50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445b88
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4584b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 5
push str.iItem
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00401710
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, ebx
call fcn.0040e9e0
mov edi, eax
cmp byte [edi + 0x30], 0
je 0x40bebf
mov bl, 1
jmp 0x40c083
sub esp, 0x18
mov dword [edi + 8], 0
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov dword [edi], 0
mov dword [edi + 4], 2
mov word [edi + 0x34], 0x100
mov byte [edi + 0x31], 1
mov byte [edi + 0x33], 1
push 0xb6
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.53_8B_D8_25_FF_FF_00_00_01_C1_8B_02_C1_EB_10_83_3D_00_02_B0_31_01_75_0C_83_FB_01_75_07_C7_04_88_63_00_00_00_83_3D_04_02_B0_31_01_75_0C_83_FB_07_75_07_C7_04_88_63_00_00_00_8B_04_88_5B
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x23
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.25_FF_FF_00_00_03_C8_8B_02_8B_04_88
mov byte [ecx], 0
call fcn.00401710
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push 0x29
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.25_FF_FF_00_00_03_C8_8B_02_8B_04_88_59_C3
mov byte [ecx], 0
call fcn.00401710
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402830
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x40bf81
push 0x40
push 0x3000
push 0x1000
push 0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
push ecx
mov dword [edi + 0xc], eax
lea eax, [edi + 0x68]
push 0x31b00000
push eax
call fcn.00402910
push 1
push 0x4510d8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x200
call fcn.0040e930
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x20], 1
mov dword [eax + 0x24], 0
mov byte [eax + 0x34], 1
mov byte [eax + 0x32], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40c001
push dword [ebp - 0x28]
call fcn.0042c3ad
add esp, 4
push 1
push 0x4510dc
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00401710
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
mov esi, dword [edi + 0xc]
mov ecx, ebx
push eax
add esi, 0x204
call fcn.0040e930
mov byte [ebp - 4], 0
mov dword [eax + 8], esi
mov dword [eax + 0x20], 1
mov dword [eax + 0x24], 0
mov byte [eax + 0x34], 1
mov byte [eax + 0x32], 0
mov dword [eax], 2
cmp dword [ebp - 0x14], 0x10
jb 0x40c06e
push dword [ebp - 0x28]
call fcn.0042c3ad
add esp, 4
sub esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, ebx
push 0
sub esp, 0xc
push eax
call fcn.0040d1a0
mov bl, al
cmp dword [ebp - 0x2c], 0x10
jb 0x40c094
push dword [ebp - 0x40]
call fcn.0042c3ad
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042c3b2
mov esp, ebp
pop ebp
ret