Function at 0x18001ec10
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.180023cc0
nop
xor edi, edi
mov dword [rsp + 0x68], edi
call fcn.180013bc0
nop
lea rdx, str.hookapi_dismsghook
lea rcx, [rsp + 0x20]
call fcn.180022310
mov rbx, rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x68], edi
lea rcx, [rsp + 0x38]
call fcn.180022480
lea rcx, [rsp + 0x40]
call fcn.180022480
lea rcx, [rsp + 0x48]
call fcn.180022480
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.180022930
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180021110
lea rcx, [rsp + 0x30]
call fcn.180013ef0
nop
mov rcx, rbx
call fcn.180021000
cmp dword [rsp + 0x68], 0xf0000001
jne 0x18001ed64
mov ecx, edi
mov dword [rsp + 0x20], ecx
cmp dword [rsp + 0x58], ecx
jle 0x18001ed1f
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x20]
lea rdx, [0x18009b1e4]
mov rcx, qword [rax]
call fcn.180030c30
mov ecx, dword [rsp + 0x20]
mov eax, edi
test ecx, ecx
sete al
test eax, eax
jne 0x18001ed64
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
call fcn.180022900
nop
lea rcx, [rsp + 0x48]
call fcn.180021000
nop
lea rcx, [rsp + 0x40]
call fcn.180021000
nop
lea rcx, [rsp + 0x38]
call fcn.180021000
mov eax, 1
jmp 0x18001eef0
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
call fcn.180022900
nop
lea rcx, [rsp + 0x48]
call fcn.180021000
nop
lea rcx, [rsp + 0x40]
call fcn.180021000
nop
lea rcx, [rsp + 0x38]
call fcn.180021000
mov word [rbp + 0x190], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x192]
call fcn.180032160
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.180032160
call fcn.180046b40
test eax, eax
je 0x18001eeee
lea r9, [0x180093530]
lea r8, [rbp + 0x190]
lea rdx, [0x180092930]
lea rcx, [rbp - 0x80]
call fcn.180031004
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18001ed5a
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 0x18001ee4c
lea rdx, str.HAFInitShareSeg
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18001ee43
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.18001f000
mov rbx, rdi
mov r8, rdi
mov eax, edi
lea r9, reloc.WS2_32.dll_connect
mov rcx, r9
cmp dword [rcx], 4
je 0x18001ee75
inc eax
add rcx, 0x38
cmp eax, 1
jb 0x18001ee63
jmp 0x18001ee96
movsxd rcx, eax
imul rcx, rcx, 0x38
mov rdx, qword [rcx + r9 + 8]
test rdx, rdx
je 0x18001ee96
mov rax, qword [rcx + r9 + 0x10]
test rax, rax
je 0x18001ee96
mov rbx, rdx
mov r8, rax
mov rdx, r8
mov rcx, rbx
call fcn.18001e0f0
cmp dword [0x1800d74d8], 0
je 0x18001eee9
mov ecx, dword [0x1800d7518]
test ecx, ecx
jle 0x18001eedf
mov rdx, qword [0x1800d7510]
lea rax, [rdx + 8]
nop
cmp qword [rax], rbx
je 0x18001eed1
inc edi
add rax, 0x18
cmp edi, ecx
jl 0x18001eec0
jmp 0x18001eedf
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.180030310
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