Function at 0x1010c140
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 0x1010c161
mov al, byte [ebp - 1]
jmp 0x1010c338
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 0x1010c187
mov al, byte [ebp - 1]
jmp 0x1010c338
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 0x1010c335
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.100f9210
add esp, 0xc
test eax, eax
jne 0x1010c327
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 0x1010c327
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
and edx, 0x80000000
jne 0x1010c29e
cmp dword [ebp + 0x10], 0x80000000
jae 0x1010c29c
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.100f40ca
add esp, 8
test eax, eax
jne 0x1010c29c
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 0x1010c29c
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 0x1010c295
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call fcn.1010be20
add esp, 8
mov edx, dword [ebp - 0x10]
mov al, byte [ebp + 0x18]
mov byte [edx + 8], al
mov al, 1
jmp 0x1010c338
jmp 0x1010c310
cmp dword [ebp + 0x10], 0x80000000
jb 0x1010c310
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
cmp edx, dword [ebp + 0x10]
jne 0x1010c310
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 0x1010c310
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 0x1010c30c
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call fcn.1010be20
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dl, byte [ebp + 0x18]
mov byte [ecx + 8], dl
mov al, 1
jmp 0x1010c338
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 0x1010c1ee
mov edx, dword [ebp - 0x18]
add edx, 0x14
mov dword [ebp - 0x18], edx
jmp 0x1010c19c
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0x14