Function at 0x140014bdc
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push rdi
sub rsp, 0xc8
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call fcn.1400833a0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000004
jne 0x140014c6f
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [rsp + 0x20]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov ecx, 0x40
call fcn.1400833a0
mov dword [rsp + 0x30], eax
jmp 0x140014c14
cmp dword [rsp + 0x30], 0
jl 0x140014c7e
cmp qword [rsp + 0x28], 0
jne 0x140014ca0
cmp qword [rsp + 0x28], 0
je 0x140014c99
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor al, al
jmp 0x140014f20
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x24], 0
jmp 0x140014cc7
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
cmp rax, qword [rcx]
jae 0x140014d2f
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x28
lea rcx, [rsp + 0x98]
mov rdx, qword [rsp + 0x70]
mov rdi, rcx
lea rsi, [rdx + rax + 0x10]
mov ecx, 0x28
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
cmp qword [rsp + 0xa0], rax
je 0x140014d0d
jmp 0x140014cbd
mov rax, qword [0x1400e2908]
cmp qword [rsp + 0xa8], rax
jne 0x140014d2d
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x50], rax
jmp 0x140014d2f
jmp 0x140014cbd
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
cmp qword [rsp + 0x50], 0
jne 0x140014d51
xor al, al
jmp 0x140014f20
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x50]
add rax, 8
mov r8d, 8
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140010ca8
movzx eax, al
test eax, eax
je 0x140014d85
cmp qword [rsp + 0x58], 0
jne 0x140014d8c
xor al, al
jmp 0x140014f20
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x58]
add rax, 8
mov r8d, 8
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.140010ca8
movzx eax, al
test eax, eax
je 0x140014dc0
cmp qword [rsp + 0x60], 0
jne 0x140014dc7
xor al, al
jmp 0x140014f20
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x60]
add rax, 0x28
mov r8d, 8
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.140010ca8
movzx eax, al
test eax, eax
je 0x140014dfb
cmp qword [rsp + 0x38], 0
jne 0x140014e02
xor al, al
jmp 0x140014f20
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x38]
add rax, 0x58
mov r8d, 0x10
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140010ca8
movzx eax, al
test eax, eax
je 0x140014e3f
movzx eax, word [rsp + 0x40]
test eax, eax
jne 0x140014e46
xor al, al
jmp 0x140014f20
movzx eax, word [rsp + 0x40]
xor edx, edx
mov ecx, 2
div rcx
inc rax
mov qword [rsp + 0x78], rax
mov eax, 2
mov rcx, qword [rsp + 0x78]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140083c14
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x68], rax
movzx eax, word [rsp + 0x40]
add rax, 2
mov qword [rsp + 0x88], rax
mov rdi, qword [rsp + 0x68]
xor eax, eax
mov rcx, qword [rsp + 0x88]
rep stosb byte [rdi], al
movzx eax, word [rsp + 0x40]
mov r8d, eax
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call fcn.140010ca8
movzx eax, al
test eax, eax
jne 0x140014ed6
xor al, al
jmp 0x140014f20
xor eax, eax
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x38]
add rax, 0x58
mov r8d, 0x10
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140010cd4
movzx eax, al
test eax, eax
jne 0x140014f04
xor al, al
jmp 0x140014f20
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.14008345c
mov al, 1
add rsp, 0xc8
pop rdi
pop rsi
ret