Function at 0x14019d308
Capabilities:
Access peb ldr_data
Check if file exists
Encode data using xor
Get file attributes
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rax - 0x358]
sub rsp, 0x440
mov rsi, r9
mov r14, r8
mov rbx, rdx
and qword [rbp + 0x388], 0
lea rcx, [rsp + 0x40]
and qword [rbp + 0x360], 0
xor edx, edx
mov r8d, 0x400
call fcn.1403ccc50
call fcn.140141104
lea rdx, [rsp + 0x40]
call fcn.1401a5e10
lea rcx, [rsp + 0x40]
dec rcx
inc rcx
cmp byte [rcx], 0
jne 0x14019d36b
xor edx, edx
mov al, byte [rbx + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x14019d375
lea rcx, [rsp + 0x40]
call qword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14019d39c
lea rcx, [rsp + 0x40]
call fcn.1403e0638
lea rcx, [rsp + 0x40]
call qword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, 4
cmp eax, 0xffffffff
jne 0x14019d440
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0x2000000
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x40000000
call qword [sym.imp.kernel32.dll_CreateFileA]
test rax, rax
je 0x14019d440
mov rcx, rax
call qword [sym.imp.kernel32.dll_CloseHandle]
lea r8, [rbp + 0x360]
lea rdx, [rbp + 0x388]
lea rcx, [rsp + 0x40]
call fcn.140203180
test al, al
je 0x14019d440
mov edx, dword [rbp + 0x360]
mov rcx, qword [rbp + 0x388]
call fcn.140139294
mov rdx, qword [rbp + 0x360]
lea r8, [rsp + 0x40]
mov rcx, qword [rbp + 0x388]
mov r9d, ebx
mov dword [rsp + 0x20], 0x2000000
call fcn.140203370
lea r8, [rbp + 0x360]
lea rdx, [rbp + 0x388]
lea rcx, [rsp + 0x40]
call fcn.140203180
test al, al
je 0x14019d5b1
mov edx, dword [rbp + 0x360]
mov rcx, qword [rbp + 0x388]
call fcn.140139294
lea rcx, [rsp + 0x40]
call fcn.1403e0638
mov rdx, qword [rbp + 0x360]
lea r8, [rsp + 0x40]
mov rcx, qword [rbp + 0x388]
mov r9d, ebx
mov dword [rsp + 0x20], 0x2000000
call fcn.140203370
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov r8, qword [rax + 0x30]
movsxd rcx, dword [r8 + 0x3c]
mov r10d, dword [rcx + r8 + 0x88]
add r10, r8
cmp r10, r8
je 0x14019d516
mov r9d, dword [r10 + 0x18]
test r9d, r9d
je 0x14019d516
mov ebx, dword [r10 + 0x20]
dec r9d
mov r11d, 0xab8e573a
lea rcx, [rbx + r9*4]
mov edx, dword [rcx + r8]
add rdx, r8
mov cl, byte [rdx]
inc rdx
test cl, cl
je 0x14019d511
movsx ecx, cl
xor ecx, r11d
imul r11d, ecx, 0x1000193
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14019d4f2
cmp r11d, 0xaf23b7ef
je 0x14019d51b
test r9d, r9d
jne 0x14019d4d5
mov rax, qword [rax]
jmp 0x14019d4b0
mov ecx, dword [r10 + 0x24]
add rcx, r8
movzx edx, word [rcx + r9*2]
lea r9, [rsp + 0x40]
mov ecx, dword [r10 + 0x1c]
add rcx, r8
mov eax, dword [rcx + rdx*4]
mov rdx, rsi
add rax, r8
mov rcx, r14
mov r8, qword [rbp + 0x380]
call qword [case.0x140173169.0]
test eax, eax
je 0x14019d5b1
lea r8, [rbp + 0x360]
lea rdx, [rbp + 0x388]
lea rcx, [rsp + 0x40]
call fcn.140203180
test al, al
je 0x14019d5b1
mov rdi, qword [rbp + 0x360]
mov rbx, qword [rbp + 0x388]
mov edx, edi
mov rcx, rbx
call fcn.140139294
mov r9d, 4
mov dword [rsp + 0x20], 0x2000000
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, rbx
call fcn.140203370
mov rdx, rdi
mov rcx, rbx
call fcn.1401a9890
mov al, 1
jmp 0x14019d5b3
xor al, al
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret