Function at 0x180061540
Capabilities:
Access peb ldr_data
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180080040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
cmp edx, 1
jne 0x18006178b
lea ecx, [rsi + 0x20]
call fcn.180066860
mov rdi, rax
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rbx
movsxd rdx, dword [rbx + 0x3c]
mov ecx, dword [rdx + rbx + 0xa0]
add rcx, rbx
mov eax, 0xaaaaaaab
mul dword [rdx + rbx + 0xa4]
shr edx, 3
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_RtlAddFunctionTable]
nop
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x58], rsi
mov rbx, qword [0x1800800f0]
mov qword [0x1800800f0], rdi
test rbx, rbx
je 0x1800615fd
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call fcn.1800016e0
lea edx, [rsi + 0x20]
mov rcx, rbx
call fcn.180066c0c
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x20], eax
mov rsi, qword [0x1800800f0]
mov rax, qword [rsi + 0x18]
mov ecx, dword [rax + 0x3c]
cmp dword [rcx + rax], 0x4550
jne 0x18006166a
movzx eax, word [rcx + rax + 0x14]
test ax, ax
je 0x18006166a
mov ebx, eax
lea r9, [rsp + 0x58]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rdi, qword [rsi + 0x18]
xor eax, eax
mov ecx, ebx
rep stosb byte [rdi], al
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x58]
mov edx, ebx
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rsi, qword [0x1800800f0]
mov rax, qword [rsi + 0x18]
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rcx, rdx
je 0x180061692
nop word [rax + rax]
cmp qword [rcx], rax
je 0x18006177f
add rcx, 0x28
cmp rcx, rdx
jne 0x180061680
mov rcx, qword gs:[0x60]
mov rdx, qword [rcx + 0x18]
add rdx, 0x10
mov rdi, qword [rdx]
cmp rdi, rdx
je 0x18006177f
nop
test rdi, rdi
je 0x18006177f
cmp qword [rdi + 0x30], rax
je 0x1800616cc
mov rdi, qword [rdi]
cmp rdi, rdx
jne 0x1800616b0
jmp 0x18006177f
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
mov qword [rsp + 0x38], rcx
mov rax, qword [rdi + 0x28]
mov rcx, qword [rax]
mov qword [rsp + 0x48], rcx
mov rax, qword [rdi + 0x18]
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x50], rdi
mov rcx, qword [0x1800800f0]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x180061732
mov rax, qword [rsi + 8]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [rsp + 0x50]
movsd qword [rax + 0x20], xmm0
add qword [rsi + 8], 0x28
jmp 0x18006173c
lea r8, [rsp + 0x30]
call fcn.180001e50
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x28]
mov qword [rcx + 8], rax
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rdi + 0x20]
mov qword [rdx], rcx
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 0x18]
mov qword [rdx + 8], rcx
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
mov qword [rdx], rcx
lea rdx, [0x180060bb0]
call fcn.180007000
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180066840
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret