Function at 0x18001eab0
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 [0x1800bd650]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
lea rsi, vtable.CTConfig.0
mov qword [rsp + 0x30], rsi
mov rax, qword [0x18007db48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.180021d20
nop
xor edi, edi
mov dword [rsp + 0x68], edi
call fcn.180013c90
nop
lea rdx, str.hookapi_dismsghook
lea rcx, [rsp + 0x20]
call fcn.180022100
mov rbx, rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], edi
lea rcx, [rsp + 0x38]
call fcn.180022270
lea rcx, [rsp + 0x40]
call fcn.180022270
lea rcx, [rsp + 0x48]
call fcn.180022270
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180022720
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180020ef0
lea rcx, [rsp + 0x30]
call fcn.180013fc0
nop
mov rcx, rbx
call fcn.180020de0
cmp dword [rsp + 0x68], 0xf0000001
jne 0x18001ec04
mov ecx, edi
mov dword [rsp + 0x20], ecx
cmp dword [rsp + 0x58], ecx
jle 0x18001ebbf
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x20]
lea rdx, [0x18009b1f4]
mov rcx, qword [rax]
call fcn.1800309c8
mov ecx, dword [rsp + 0x20]
mov eax, edi
test ecx, ecx
sete al
test eax, eax
jne 0x18001ec04
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
call fcn.1800226f0
nop
lea rcx, [rsp + 0x48]
call fcn.180020de0
nop
lea rcx, [rsp + 0x40]
call fcn.180020de0
nop
lea rcx, [rsp + 0x38]
call fcn.180020de0
mov eax, 1
jmp 0x18001ed90
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
call fcn.1800226f0
nop
lea rcx, [rsp + 0x48]
call fcn.180020de0
nop
lea rcx, [rsp + 0x40]
call fcn.180020de0
nop
lea rcx, [rsp + 0x38]
call fcn.180020de0
mov word [rbp + 0x190], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x192]
call fcn.180031f40
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.180031f40
call fcn.180046920
test eax, eax
je 0x18001ed8e
lea r9, [0x180093540]
lea r8, [rbp + 0x190]
lea rdx, [0x180092920]
lea rcx, [rbp - 0x80]
call fcn.180030de4
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001ebfa
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 0x18001ecec
lea rdx, str.HAFInitShareSeg
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001ece3
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.18001eea0
mov rbx, rdi
mov r8, rdi
mov eax, edi
lea r9, reloc.WS2_32.dll_connect
mov rcx, r9
cmp dword [rcx], 4
je 0x18001ed15
inc eax
add rcx, 0x38
cmp eax, 1
jb 0x18001ed03
jmp 0x18001ed36
movsxd rcx, eax
imul rcx, rcx, 0x38
mov rdx, qword [rcx + r9 + 8]
test rdx, rdx
je 0x18001ed36
mov rax, qword [rcx + r9 + 0x10]
test rax, rax
je 0x18001ed36
mov rbx, rdx
mov r8, rax
mov rdx, r8
mov rcx, rbx
call fcn.18001df90
cmp dword [0x1800d74d8], 0
je 0x18001ed89
mov ecx, dword [0x1800d7518]
test ecx, ecx
jle 0x18001ed7f
mov rdx, qword [0x1800d7510]
lea rax, [rdx + 8]
nop
cmp qword [rax], rbx
je 0x18001ed71
inc edi
add rax, 0x18
cmp edi, ecx
jl 0x18001ed60
jmp 0x18001ed7f
movsxd rax, edi
lea rcx, [rax + rax*2]
mov dword [rdx + rcx*8], 1
mov dword [0x1800d7508], 1
mov edi, 1
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1800300f0
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