Function at 0x180020c10
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3b8]
sub rsp, 0x4b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1800c4650]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
lea rsi, vtable.CTConfig.0
mov qword [rsp + 0x30], rsi
mov rax, qword [0x180081bb8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.18004db80
nop
xor edi, edi
mov dword [rsp + 0x68], edi
call fcn.1800159b0
nop
lea rdx, str.hookapi_dismsghook
lea rcx, [rsp + 0x20]
call fcn.180024700
mov rbx, rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], edi
lea rcx, [rsp + 0x38]
call fcn.180024870
lea rcx, [rsp + 0x40]
call fcn.180024870
lea rcx, [rsp + 0x48]
call fcn.180024870
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180024d20
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1800233a0
lea rcx, [rsp + 0x30]
call fcn.180015ce0
nop
mov rcx, rbx
call fcn.180023290
cmp dword [rsp + 0x68], 0xf0000001
jne 0x180020d64
mov ecx, edi
mov dword [rsp + 0x20], ecx
cmp dword [rsp + 0x58], ecx
jle 0x180020d1f
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x20]
lea rdx, [0x18009b1b8]
mov rcx, qword [rax]
call fcn.180033078
mov ecx, dword [rsp + 0x20]
mov eax, edi
test ecx, ecx
sete al
test eax, eax
jne 0x180020d64
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
call fcn.180024cf0
nop
lea rcx, [rsp + 0x48]
call fcn.180023290
nop
lea rcx, [rsp + 0x40]
call fcn.180023290
nop
lea rcx, [rsp + 0x38]
call fcn.180023290
mov eax, 1
jmp 0x180020ef0
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
call fcn.180024cf0
nop
lea rcx, [rsp + 0x48]
call fcn.180023290
nop
lea rcx, [rsp + 0x40]
call fcn.180023290
nop
lea rcx, [rsp + 0x38]
call fcn.180023290
mov word [rbp + 0x190], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x192]
call fcn.180034650
mov edx, 0x103
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov word [rbp - 0x80], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x7e]
call fcn.180034650
call fcn.180048fd0
test eax, eax
je 0x180020eee
lea r9, [0x180097238]
lea r8, [rbp + 0x190]
lea rdx, [0x180096e60]
lea rcx, [rbp - 0x80]
call fcn.180033468
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180020d5a
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x180020e4c
lea rdx, str.HAFInitShareSeg
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180020e43
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.180021000
mov rbx, rdi
mov r8, rdi
mov eax, edi
lea r9, reloc.WS2_32.dll_connect
mov rcx, r9
cmp dword [rcx], 4
je 0x180020e75
inc eax
add rcx, 0x38
cmp eax, 1
jb 0x180020e63
jmp 0x180020e96
movsxd rcx, eax
imul rcx, rcx, 0x38
mov rdx, qword [rcx + r9 + 8]
test rdx, rdx
je 0x180020e96
mov rax, qword [rcx + r9 + 0x10]
test rax, rax
je 0x180020e96
mov rbx, rdx
mov r8, rax
mov rdx, r8
mov rcx, rbx
call fcn.180020160
cmp dword [0x1800de808], 0
je 0x180020ee9
mov ecx, dword [0x1800de848]
test ecx, ecx
jle 0x180020edf
mov rdx, qword [0x1800de840]
lea rax, [rdx + 8]
nop
cmp qword [rax], rbx
je 0x180020ed1
inc edi
add rax, 0x18
cmp edi, ecx
jl 0x180020ec0
jmp 0x180020edf
movsxd rax, edi
lea rcx, [rax + rax*2]
mov dword [rdx + rcx*8], 1
mov dword [0x1800de838], 1
mov edi, 1
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1800327a0
lea r11, [rsp + 0x4b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret