Function at 0x10010910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x1002b060]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push edi
mov edi, ecx
test edi, edi
jne 0x10010946
call fcn.10002260
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10012841
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x10], 0
lea ebx, [esi + 0x10]
je 0x100109c1
mov eax, dword [esi + 0x1c]
mov edx, ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edi
cmp eax, 4
jb 0x10010981
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x100109c1
mov ecx, dword [esp + 0x10]
sub eax, 4
add ecx, 4
add edx, 4
mov dword [esp + 0x10], ecx
cmp eax, 4
jae 0x10010961
mov dword [esp + 8], edx
test eax, eax
je 0x100109ad
mov dl, byte [edx]
cmp dl, byte [ecx]
jne 0x100109c1
cmp eax, 1
jbe 0x100109ad
mov edx, dword [esp + 8]
mov dl, byte [edx + 1]
cmp dl, byte [ecx + 1]
jne 0x100109c1
cmp eax, 2
jbe 0x100109ad
mov eax, dword [esp + 8]
mov dl, byte [eax + 2]
cmp dl, byte [ecx + 2]
jne 0x100109c1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.10002260
add esp, 4
jmp 0x10010af7
push esi
push 0x40
push 0x10
push edi
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100109f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10002260
add esp, 4
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10012841
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov dword [esi + 4], eax
mov ecx, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 8]
mov dword [esi + 0xc], edx
cdq
mov ecx, eax
mov dword [esp + 0x14], edx
mov eax, edi
cdq
mov dword [esp + 0x10], ecx
sub ecx, eax
mov eax, dword [esp + 0x14]
sbb eax, edx
cdq
xor eax, edx
xor ecx, edx
sub ecx, edx
sbb eax, edx
mov dword [esp + 0xc], eax
js 0x10010a44
jg 0x10010a3b
cmp ecx, 0x7fffffff
jbe 0x10010a44
mov dword [esi + 0x20], 2
jmp 0x10010a4b
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x10010a73
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [esi + 0x1c], 5
mov byte [ebx], 0xe9
sub eax, 5
mov dword [esi + 0x11], eax
mov ecx, dword [ebx]
mov dword [edi], ecx
mov dl, byte [ebx + 4]
mov byte [edi + 4], dl
jmp 0x10010ae8
cmp eax, 1
jne 0x10010aaf
mov eax, dword [ebp + 8]
sub eax, edi
mov dword [esi + 0x1c], 5
mov dword [esi + 0x11], eax
mov byte [esp + 8], 0xeb
mov byte [esp + 9], 0xf9
mov cx, word [esp + 8]
mov byte [ebx], 0xe9
mov word [edi], cx
mov edx, dword [esi + 0x1c]
push edx
lea eax, [edi - 5]
push ebx
push eax
call fcn.10016e80
add esp, 0xc
jmp 0x10010ae8
cmp eax, 2
jne 0x10010ae8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x1c], 0xc
mov byte [ebx], 0x48
mov byte [esi + 0x11], 0xb8
mov dword [esi + 0x12], eax
mov dword [esi + 0x16], ecx
mov byte [esi + 0x1a], 0xff
mov byte [esi + 0x1b], 0xe0
mov ecx, dword [ebx]
mov dword [edi], ecx
mov edx, dword [ebx + 4]
mov dword [edi + 4], edx
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 0x24], edi
add edi, 2
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
pop edi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10012841
mov esp, ebp
pop ebp
ret 4