Function at 0x10116be0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10116c01
mov al, byte [ebp - 1]
jmp 0x10116dd8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
shl eax, 0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + eax + 0x78], 0
jne 0x10116c27
mov al, byte [ebp - 1]
jmp 0x10116dd8
mov edx, 8
shl edx, 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp dword [edx], 0
je 0x10116dd5
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.101046dd
add esp, 0xc
test eax, eax
jne 0x10116dc7
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
add edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x10116dc7
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
and edx, 0x80000000
jne 0x10116d3e
cmp dword [ebp + 0x10], 0x80000000
jae 0x10116d3c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x24]
add eax, 2
push eax
call fcn.100ff59e
add esp, 8
test eax, eax
jne 0x10116d3c
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
push 0x40
push 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10116d3c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov dword [edx], eax
movzx ecx, byte [ebp + 0x18]
test ecx, ecx
je 0x10116d35
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call fcn.101168c0
add esp, 8
mov edx, dword [ebp - 0x10]
mov al, byte [ebp + 0x18]
mov byte [edx + 8], al
mov al, 1
jmp 0x10116dd8
jmp 0x10116db0
cmp dword [ebp + 0x10], 0x80000000
jb 0x10116db0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
cmp edx, dword [ebp + 0x10]
jne 0x10116db0
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10116db0
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [eax], edx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edx
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10116dac
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call fcn.101168c0
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp + 0x18]
mov byte [ecx + 8], dl
mov al, 1
jmp 0x10116dd8
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
jmp 0x10116c8e
mov edx, dword [ebp - 0x18]
add edx, 0x14
mov dword [ebp - 0x18], edx
jmp 0x10116c3c
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0x14