Function at 0x18001e100
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.180021480
nop
xor edi, edi
mov dword [rsp + 0x68], edi
call fcn.1800137b0
nop
lea rdx, str.hookapi_dismsghook
lea rcx, [rsp + 0x20]
call fcn.1800217e0
mov rbx, rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], edi
lea rcx, [rsp + 0x38]
call fcn.180021950
lea rcx, [rsp + 0x40]
call fcn.180021950
lea rcx, [rsp + 0x48]
call fcn.180021950
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180021e00
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1800205d0
lea rcx, [rsp + 0x30]
call fcn.180013ae0
nop
mov rcx, rbx
call fcn.1800204c0
cmp dword [rsp + 0x68], 0xf0000001
jne 0x18001e254
mov ecx, edi
mov dword [rsp + 0x20], ecx
cmp dword [rsp + 0x58], ecx
jle 0x18001e20f
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x20]
lea rdx, [0x18009a1f4]
mov rcx, qword [rax]
call fcn.18002ffc8
mov ecx, dword [rsp + 0x20]
mov eax, edi
test ecx, ecx
sete al
test eax, eax
jne 0x18001e254
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
call fcn.180021dd0
nop
lea rcx, [rsp + 0x48]
call fcn.1800204c0
nop
lea rcx, [rsp + 0x40]
call fcn.1800204c0
nop
lea rcx, [rsp + 0x38]
call fcn.1800204c0
mov eax, 1
jmp 0x18001e3e0
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
call fcn.180021dd0
nop
lea rcx, [rsp + 0x48]
call fcn.1800204c0
nop
lea rcx, [rsp + 0x40]
call fcn.1800204c0
nop
lea rcx, [rsp + 0x38]
call fcn.1800204c0
mov word [rbp + 0x190], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x192]
call fcn.180031540
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.180031540
call fcn.180045ee0
test eax, eax
je 0x18001e3de
lea r9, [0x180092540]
lea r8, [rbp + 0x190]
lea rdx, [0x180091940]
lea rcx, [rbp - 0x80]
call fcn.1800303e4
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001e24a
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 0x18001e33c
lea rdx, str.HAFInitShareSeg
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001e333
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.18001e4c0
mov rbx, rdi
mov r8, rdi
mov eax, edi
lea r9, reloc.WS2_32.dll_connect
mov rcx, r9
cmp dword [rcx], 4
je 0x18001e365
inc eax
add rcx, 0x38
cmp eax, 1
jb 0x18001e353
jmp 0x18001e386
movsxd rcx, eax
imul rcx, rcx, 0x38
mov rdx, qword [rcx + r9 + 8]
test rdx, rdx
je 0x18001e386
mov rax, qword [rcx + r9 + 0x10]
test rax, rax
je 0x18001e386
mov rbx, rdx
mov r8, rax
mov rdx, r8
mov rcx, rbx
call fcn.18001d5c0
cmp dword [0x1800d64d8], 0
je 0x18001e3d9
mov ecx, dword [0x1800d6518]
test ecx, ecx
jle 0x18001e3cf
mov rdx, qword [0x1800d6510]
lea rax, [rdx + 8]
nop
cmp qword [rax], rbx
je 0x18001e3c1
inc edi
add rax, 0x18
cmp edi, ecx
jl 0x18001e3b0
jmp 0x18001e3cf
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.18002f6f0
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