Function at 0x180051ec0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
movaps xmmword [rax - 0x28], xmm6
xor r14d, r14d
cmp byte [0x1800d05a9], r14b
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
je 0x1800520f5
mov rax, qword [0x1800d0d90]
test rax, rax
jne 0x180051fa5
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rbx, qword [rax]
mov r10, rbx
mov r8, qword [r10 + 0x30]
movsxd rax, dword [r8 + 0x3c]
mov r9d, dword [rax + r8 + 0x88]
add r9, r8
cmp r9, r8
je 0x180051f8a
mov edx, dword [r9 + 0x18]
test edx, edx
je 0x180051f8a
mov esi, dword [r9 + 0x20]
dec edx
mov r11d, 0x811c9dc5
lea rax, [rsi + rdx*4]
mov ecx, dword [rax + r8]
add rcx, r8
mov al, byte [rcx]
inc rcx
test al, al
je 0x180051f86
movsx eax, al
xor eax, r11d
imul r11d, eax, 0x1000193
mov al, byte [rcx]
inc rcx
test al, al
jne 0x180051f63
cmp r11d, 0x95466b05
je 0x18005201f
test edx, edx
jne 0x180051f47
mov rax, qword [r10]
mov r10, rax
cmp rax, rbx
je 0x180051f9b
cmp qword [rax + 0x30], r14
jne 0x180051f23
mov rax, r14
mov qword [0x1800d0d90], rax
mov ecx, dword [0x1800cf3f4]
call rax
test ax, ax
jns 0x1800520f5
call fcn.18004d024
mov rbx, rax
test rax, rax
je 0x1800520f5
cmp dword [0x1800cf420], 1
jne 0x1800520f5
movss xmm9, dword [0x1800d0128]
lea rcx, [rbp - 0x29]
movss xmm6, dword [0x1800d012c]
xor r8d, r8d
mulss xmm9, dword [0x180058b14]
mov rdx, rax
mulss xmm6, dword [0x180058b14]
call fcn.18004cce4
mov ecx, dword [0x1800d05b8]
sub ecx, 1
je 0x18005204f
sub ecx, 1
je 0x180052047
cmp ecx, 1
jne 0x18005203c
mov r8d, ecx
jmp 0x180052055
mov ecx, dword [r9 + 0x24]
add rcx, r8
movzx edx, word [rcx + rdx*2]
mov ecx, dword [r9 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
add rax, r8
jmp 0x180051f9e
mov ebx, dword [rbp - 0x21]
movsd xmm8, qword [rbp - 0x29]
jmp 0x18005206a
mov r8d, 8
jmp 0x180052055
mov r8d, 7
mov rdx, rbx
lea rcx, [rbp - 0x39]
call fcn.18004cce4
movsd xmm8, qword [rbp - 0x39]
mov ebx, dword [rbp - 0x31]
lea rdx, [rbp - 0x19]
movsd qword [rbp - 0x19], xmm8
lea rcx, [rbp + 0x67]
mov dword [rbp - 0x11], ebx
call fcn.180051498
movss xmm0, dword [rbp + 0x6b]
cvtps2pd xmm1, xmm6
cvtps2pd xmm0, xmm0
subsd xmm0, xmm1
movsd xmm1, qword [0x1800604d8]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd xmm1, qword [0x1800604d8]
movaps xmm7, xmm0
movss xmm0, dword [rbp + 0x67]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm9
subsd xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
addsd xmm7, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
mov eax, dword [0x1800cf3f8]
lea ecx, [rax + rax*4]
add ecx, ecx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x1800520f5
lea rcx, [rbp - 9]
movsd qword [rbp - 9], xmm8
mov dword [rbp - 1], ebx
call fcn.18004c908
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret