Function at 0x18005f6f0
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 [0x18007d040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
cmp edx, 1
jne 0x18005f92e
lea ecx, [rsi + 0x20]
call fcn.1800649f0
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 [0x18007d0c0]
mov qword [0x18007d0c0], rdi
test rbx, rbx
je 0x18005f7ad
mov qword [rsp + 0x28], rbx
mov rcx, rbx
call fcn.180001710
lea edx, [rsi + 0x20]
mov rcx, rbx
call fcn.180064d9c
mov eax, 1
and eax, 0xfffffffe
mov dword [rsp + 0x20], eax
mov rsi, qword [0x18007d0c0]
mov rcx, qword [rsi + 0x18]
mov eax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x18005f814
movzx edx, word [rax + rcx + 0x14]
test dx, dx
je 0x18005f814
mov ebx, edx
lea r9, [rsp + 0x58]
mov r8d, 0x40
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 [0x18007d0c0]
mov rax, qword [rsi + 0x18]
mov rcx, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rcx, rdx
je 0x18005f836
cmp qword [rcx], rax
je 0x18005f922
add rcx, 0x28
cmp rcx, rdx
jne 0x18005f824
mov rcx, qword gs:[0x60]
mov rdx, qword [rcx + 0x18]
add rdx, 0x10
mov rdi, qword [rdx]
cmp rdi, rdx
je 0x18005f922
test rdi, rdi
je 0x18005f922
cmp qword [rdi + 0x30], rax
je 0x18005f86f
mov rdi, qword [rdi]
cmp rdi, rdx
jne 0x18005f853
jmp 0x18005f922
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 [0x18007d0c0]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x18005f8d5
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 0x18005f8df
lea r8, [rsp + 0x30]
call fcn.180001f20
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, [0x18005f370]
call fcn.180007570
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800649d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret