Function at 0x51efa0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x51f32b
push rbp
mov rbp, rsp
sub rsp, 0x78
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0x98], rax
mov byte [rsp + 0xd0], r10b
mov qword [rsp + 0xc8], r9
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xa0], rbx
mov rdx, qword [rax + 0xb0]
mov qword [rsp + 0x58], rdx
jmp 0x51f015
sub rcx, rax
lea rsi, [rcx - 1]
mov rax, rsi
neg rax
sar rax, 0x3f
and rdx, rax
mov rax, qword [rsp + 0x60]
lea rdi, [rax + rdx]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov byte [rsp + 0x10], 0xa
call fcn.00403ea0
xorps xmm15, xmm15
mov r14, qword [0x00766460]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
cmp rax, 0xffffffffffffffff
je 0x51f17f
mov qword [rsp + 0x38], rax
xor eax, eax
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
call fcn.00453a20
mov rdx, qword [rsp + 0xa0]
mov rsi, qword [rdx + 0x18]
mov rdi, rcx
mov rcx, rbx
mov rbx, rax
mov rax, qword [rsp + 0xa8]
call rsi
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
nop dword [rax + rax]
cmp rdx, rcx
jb 0x51f325
mov rax, qword [rsp + 0x60]
mov rbx, rcx
xor ecx, ecx
call fcn.0051f3a0
mov rdx, qword [rsp + 0x58]
mov rsi, qword [rdx + 0xa8]
mov rcx, qword [rdx + 0xb0]
mov rdi, qword [rdx + 0xb8]
mov r8, qword [rsp + 0x98]
mov r9, qword [r8 + 0x40]
movups xmmword [rsp + 0x68], xmm15
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rax
mov rax, r9
mov rbx, rsi
lea rsi, [rsp + 0x68]
mov r9d, 1
mov r8, r9
call fcn.00517260
mov rcx, rbx
mov rbx, rax
xor eax, eax
call fcn.00453a20
mov rdx, qword [rsp + 0xa0]
mov rsi, qword [rdx + 0x18]
mov rdi, rcx
mov rcx, rbx
mov rbx, rax
mov rax, qword [rsp + 0xa8]
call rsi
lea rax, [0x00591180]
call fcn.0040f780
mov byte [rax], 0xa
mov rdx, qword [rsp + 0xa0]
mov rsi, qword [rdx + 0x18]
mov rbx, rax
mov ecx, 1
mov rdi, rcx
mov rax, qword [rsp + 0xa8]
call rsi
mov rax, qword [rsp + 0x38]
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x48]
cmp rcx, rdx
jae 0x51eff8
jmp 0x51f31d
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x51f317
xor eax, eax
mov rbx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xc8]
nop
call fcn.00453a20
mov rdx, qword [rsp + 0xa0]
mov rsi, qword [rdx + 0x18]
mov rdi, rcx
mov rcx, rbx
mov rbx, rax
mov rax, qword [rsp + 0xa8]
call rsi
mov rax, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x48]
xor ecx, ecx
call fcn.0051f3a0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x40], rbx
mov rdx, qword [rsp + 0x58]
mov rsi, qword [rdx + 0xf0]
mov rcx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
lea rax, [0x00597220]
mov rbx, rsi
call fcn.004142c0
test bl, bl
je 0x51f255
mov rbx, qword [rax + 8]
mov rcx, qword [rax + 0x10]
mov rdi, qword [rax + 0x18]
mov rdx, qword [rsp + 0x98]
mov rax, qword [rdx + 0x40]
movups xmmword [rsp + 0x68], xmm15
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x70], rdx
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x68], rdx
lea rsi, [rsp + 0x68]
mov r8d, 1
mov r9, r8
call fcn.00517260
jmp 0x51f2a8
mov rdx, qword [rsp + 0x58]
mov rbx, qword [rdx + 0xa8]
mov rcx, qword [rdx + 0xb0]
mov rdi, qword [rdx + 0xb8]
mov rdx, qword [rsp + 0x98]
mov rax, qword [rdx + 0x40]
movups xmmword [rsp + 0x68], xmm15
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x70], rdx
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x68], rdx
lea rsi, [rsp + 0x68]
mov r8d, 1
mov r9, r8
call fcn.00517260
mov rcx, rbx
mov rbx, rax
xor eax, eax
call fcn.00453a20
mov rdx, qword [rsp + 0xa0]
mov rsi, qword [rdx + 0x18]
mov rdi, rcx
mov rcx, rbx
mov rbx, rax
mov rax, qword [rsp + 0xa8]
call rsi
movzx edx, byte [rsp + 0xd0]
nop dword [rax]
test dl, dl
je 0x51f317
lea rax, [0x00591180]
call fcn.0040f780
mov byte [rax], 0xa
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx + 0x18]
mov rbx, rax
mov edi, 1
mov rax, qword [rsp + 0xa8]
mov rdx, rcx
mov rcx, rdi
call rdx
add rsp, 0x78
pop rbp
ret
mov rax, rdx
call fcn.0046b4a0
call fcn.0046b420
nop
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x48], r9
mov byte [rsp + 0x50], r10b
call fcn.004690e0
mov rax, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
movzx r10d, byte [rsp + 0x50]
jmp fcn.0051efa0