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

Disassembly:
mov r11, rsp
sub rsp, 0x78
cmp byte [0x180162d54], 0
je 0x180050953
mov rax, qword [0x180162cf8]
mov qword [r11 + 0x10], rbx
test rax, rax
jne 0x1800507c4
mov rax, qword gs:[0x60]
mov qword [r11 + 0x18], rsi
mov qword [r11 - 8], rdi
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov rsi, qword [rax]
mov r11, rsi
nop word [rax + rax]
mov r9, qword [r11 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
add rbx, r9
cmp rbx, r9
je 0x180050798
mov r8d, dword [rbx + 0x18]
test r8d, r8d
je 0x180050798
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rdi + r8*4]
mov ecx, dword [rax + r9]
add rcx, r9
movzx eax, byte [rcx]
inc rcx
test al, al
je 0x180050793
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x180050770
cmp edx, 0x95466b05
je 0x180050848
test r8d, r8d
jne 0x180050750
mov rax, qword [r11]
mov r11, rax
cmp rax, rsi
je 0x1800507ae
cmp qword [rax + 0x30], 0
jne 0x180050720
xor eax, eax
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x90]
mov qword [0x180162cf8], rax
mov ecx, dword [reloc.XINPUT1_4.dll_Ordinal_2]
call rax
test ax, ax
jns 0x18005094b
call fcn.180050020
mov rbx, rax
test rax, rax
je 0x18005094b
movaps xmmword [rsp + 0x60], xmm6
lea rcx, [rsp + 0x20]
movss xmm6, dword [0x180162fec]
xor r8d, r8d
mulss xmm6, dword [0x1800b7e6c]
mov rdx, rax
movaps xmmword [rsp + 0x50], xmm7
movaps xmmword [rsp + 0x40], xmm8
movaps xmmword [rsp + 0x30], xmm9
movss xmm9, dword [0x180162fe8]
mulss xmm9, dword [0x1800b7e6c]
call fcn.18004aa80
mov ecx, dword [0x180162d58]
sub ecx, 1
je 0x18005086c
sub ecx, 1
je 0x180050864
cmp ecx, 1
jne 0x18005087f
mov r8d, ecx
jmp 0x180050872
mov ecx, dword [rbx + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x1800507b0
mov r8d, 8
jmp 0x180050872
mov r8d, 7
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.18004aa80
movsd xmm8, qword [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov ebx, dword [rsp + 0x28]
lea rcx, [rsp + 0x80]
movsd qword [rsp + 0x20], xmm8
mov dword [rsp + 0x28], ebx
call fcn.18004a880
movss xmm0, dword [rsp + 0x84]
cvtps2pd xmm1, xmm6
cvtps2pd xmm0, xmm0
subsd xmm0, xmm1
movsd xmm1, qword [0x1800b7f00]
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movsd xmm1, qword [0x1800b7f00]
movaps xmm7, xmm0
movss xmm0, dword [rsp + 0x80]
cvtps2pd xmm0, xmm0
cvtps2pd xmm2, xmm9
subsd xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_pow
movaps xmm9, xmmword [rsp + 0x30]
addsd xmm7, xmm0
movaps xmm6, xmmword [rsp + 0x60]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsd2ss xmm0, xmm7
movaps xmm7, xmmword [rsp + 0x50]
ucomiss xmm1, xmm0
ja 0x180050914
sqrtss xmm0, xmm0
jmp 0x180050919
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
mov eax, dword [reloc.WS2_32.dll_getpeername]
lea ecx, [rax + rax*4]
add ecx, ecx
movd xmm1, ecx
cvtdq2ps xmm1, xmm1
comiss xmm1, xmm0
jbe 0x180050945
lea rcx, [rsp + 0x20]
movsd qword [rsp + 0x20], xmm8
mov dword [rsp + 0x28], ebx
call fcn.180050310
movaps xmm8, xmmword [rsp + 0x40]
mov rbx, qword [rsp + 0x88]
add rsp, 0x78
ret