Function at 0x10019190
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b9d4d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100fc068]
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 edi, ecx
cmp byte [ebp + 8], 0
mov ecx, dword [edi + 0x38]
je 0x10019335
test ecx, ecx
jne 0x100192ed
mov ecx, edi
call fcn.10019b80
mov dword [edi + 0x38], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
xor esi, esi
mov ebx, dword [edi + 0x18]
nop dword [eax]
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.1008d920
movzx eax, byte [ebp - 0x40]
add esi, eax
add ebx, eax
cmp esi, 5
jb 0x10019200
lea eax, [ebp - 0x18]
mov dword [edi + 0x24], esi
push eax
push 0x40
push esi
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100192de
mov esi, dword [edi + 0x24]
push esi
call fcn.10090943
push esi
mov ebx, eax
push 0
push ebx
call fcn.10093c30
lea esi, [edi + 0x1c]
add esp, 0x10
lea eax, [ebp - 0x44]
cmp esi, eax
je 0x1001925e
mov eax, dword [esi]
mov dword [esi], ebx
test eax, eax
je 0x10019267
push eax
jmp 0x1001925f
push ebx
call fcn.10090304
add esp, 4
push dword [edi + 0x24]
push dword [edi + 0x18]
push dword [esi]
call fcn.10092030
mov esi, dword [edi + 0x18]
mov ebx, 0xe9
mov edx, dword [edi + 0x38]
sub edx, esi
sub edx, 5
mov eax, dword [esi]
cmp al, 0xe8
movzx ecx, al
mov dword [ebp - 0x18], eax
cmovne ecx, ebx
mov dword [ebp - 0x17], edx
mov byte [ebp - 0x18], cl
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
movzx eax, byte [ebp - 0x14]
mov byte [esi + 4], al
mov eax, dword [edi + 0x24]
sub eax, 5
push eax
mov eax, dword [edi + 0x18]
add eax, 5
push 0x90
push eax
call fcn.10093c30
add esp, 0x18
lea eax, [ebp - 0x18]
push eax
push 0x20
push dword [edi + 0x24]
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100192de
lea ecx, [ebp - 0x24]
call fcn.100164d0
jmp 0x10019357
lea ecx, [ebp - 0x24]
call fcn.100164d0
xor al, al
jmp 0x1001936f
mov eax, dword [edi + 0x28]
mov ebx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
mov ecx, edx
mov esi, dword [eax + 0x1c]
mov eax, ebx
shrd ecx, eax, 8
mov eax, ebx
mov byte [esi + 1], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, ebx
mov byte [esi], dl
shrd edx, eax, 0x18
mov eax, ebx
mov byte [esi + 4], bl
shr eax, 8
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
shr ebx, 0x18
mov byte [esi + 2], cl
mov byte [esi + 3], dl
mov byte [esi + 6], al
mov byte [esi + 7], bl
jmp 0x10019357
test ecx, ecx
je 0x10019357
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x30], eax
mov eax, dword [edi + 0x28]
mov dword [edi + 0x34], ecx
mov eax, dword [eax + 0x1c]
mov dword [eax], 0x90909090
mov dword [eax + 4], 0x90909090
mov eax, dword [edi + 0x28]
push dword [eax + 0x20]
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
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.100902f6
mov esp, ebp
pop ebp
ret 4