Function at 0x18001e190
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 [0x1800bc650]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
lea rsi, vtable.CTConfig.0
mov qword [rsp + 0x30], rsi
mov rax, qword [0x18007cb48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
call fcn.180021510
nop
xor edi, edi
mov dword [rsp + 0x68], edi
call fcn.180013a10
nop
lea rdx, str.hookapi_dismsghook
lea rcx, [rsp + 0x20]
call fcn.180021870
mov rbx, rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], edi
lea rcx, [rsp + 0x38]
call fcn.1800219e0
lea rcx, [rsp + 0x40]
call fcn.1800219e0
lea rcx, [rsp + 0x48]
call fcn.1800219e0
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180021e90
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180020660
lea rcx, [rsp + 0x30]
call fcn.180013d40
nop
mov rcx, rbx
call fcn.180020550
cmp dword [rsp + 0x68], 0xf0000001
jne 0x18001e2e4
mov ecx, edi
mov dword [rsp + 0x20], ecx
cmp dword [rsp + 0x58], ecx
jle 0x18001e29f
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x20]
lea rdx, [0x18009a1e4]
mov rcx, qword [rax]
call fcn.180030098
mov ecx, dword [rsp + 0x20]
mov eax, edi
test ecx, ecx
sete al
test eax, eax
jne 0x18001e2e4
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
call fcn.180021e60
nop
lea rcx, [rsp + 0x48]
call fcn.180020550
nop
lea rcx, [rsp + 0x40]
call fcn.180020550
nop
lea rcx, [rsp + 0x38]
call fcn.180020550
mov eax, 1
jmp 0x18001e470
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
call fcn.180021e60
nop
lea rcx, [rsp + 0x48]
call fcn.180020550
nop
lea rcx, [rsp + 0x40]
call fcn.180020550
nop
lea rcx, [rsp + 0x38]
call fcn.180020550
mov word [rbp + 0x190], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x192]
call fcn.180031610
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.180031610
call fcn.180045ff0
test eax, eax
je 0x18001e46e
lea r9, [0x180092530]
lea r8, [rbp + 0x190]
lea rdx, [0x180091930]
lea rcx, [rbp - 0x80]
call fcn.1800304b4
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001e2da
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 0x18001e3cc
lea rdx, str.HAFInitShareSeg
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001e3c3
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.18001e550
mov rbx, rdi
mov r8, rdi
mov eax, edi
lea r9, reloc.WS2_32.dll_connect
mov rcx, r9
cmp dword [rcx], 4
je 0x18001e3f5
inc eax
add rcx, 0x38
cmp eax, 1
jb 0x18001e3e3
jmp 0x18001e416
movsxd rcx, eax
imul rcx, rcx, 0x38
mov rdx, qword [rcx + r9 + 8]
test rdx, rdx
je 0x18001e416
mov rax, qword [rcx + r9 + 0x10]
test rax, rax
je 0x18001e416
mov rbx, rdx
mov r8, rax
mov rdx, r8
mov rcx, rbx
call fcn.18001d670
cmp dword [0x1800d64d8], 0
je 0x18001e469
mov ecx, dword [0x1800d6518]
test ecx, ecx
jle 0x18001e45f
mov rdx, qword [0x1800d6510]
lea rax, [rdx + 8]
nop
cmp qword [rax], rbx
je 0x18001e451
inc edi
add rax, 0x18
cmp edi, ecx
jl 0x18001e440
jmp 0x18001e45f
movsxd rax, edi
lea rcx, [rax + rax*2]
mov dword [rdx + rcx*8], 1
mov dword [0x1800d6508], 1
mov edi, 1
mov eax, edi
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.18002f7c0
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