Function at 0x180022a50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x3c8]
sub rsp, 0x4c0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1800cb660]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov esi, 1
lea r12, vtable.CTConfig.0
mov qword [rsp + 0x40], r12
mov rax, qword [0x180087258]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x60]
call fcn.180028df0
nop
xor edi, edi
mov dword [rsp + 0x78], edi
call fcn.180017350
nop
lea rdx, str.hookapi_dismsghook
lea rcx, [rsp + 0x30]
call fcn.180027390
mov rbx, rax
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x78], edi
lea rcx, [rsp + 0x48]
call fcn.180027500
lea rcx, [rsp + 0x50]
call fcn.180027500
lea rcx, [rsp + 0x58]
call fcn.180027500
or r8d, 0xffffffff
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.1800279b0
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.180025980
lea rcx, [rsp + 0x40]
call fcn.180017680
nop
mov rcx, rbx
call fcn.180025870
cmp dword [rsp + 0x78], 0xf0000001
jne 0x180022b6e
mov eax, edi
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x68], eax
jle 0x180022b66
mov rax, qword [rsp + 0x60]
lea r8, [rsp + 0x30]
lea rdx, [0x1800a0ae8]
mov rcx, qword [rax]
call fcn.180035fc0
mov eax, dword [rsp + 0x30]
mov esi, edi
test eax, eax
sete sil
cmp dword [0x1800e52c0], 0
je 0x180022b9a
mov dword [rsp + 0x20], esi
lea r9, str.CDetoursMgr::SetHook_1___lu_
lea r8, str.AgentU64
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800e5208]
call fcn.180018f90
test esi, esi
jne 0x180022bd8
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x60]
call fcn.180027980
nop
lea rcx, [rsp + 0x58]
call fcn.180025870
nop
lea rcx, [rsp + 0x50]
call fcn.180025870
nop
lea rcx, [rsp + 0x48]
call fcn.180025870
mov eax, 1
jmp 0x180022ea5
mov qword [rsp + 0x40], r12
lea rcx, [rsp + 0x60]
call fcn.180027980
nop
lea rcx, [rsp + 0x58]
call fcn.180025870
nop
lea rcx, [rsp + 0x50]
call fcn.180025870
nop
lea rcx, [rsp + 0x48]
call fcn.180025870
mov word [rbp + 0x1a0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1a2]
call fcn.180037550
cmp dword [0x1800e5e04], 0
jne 0x180022c4a
mov dword [0x1800e5e04], 1
xor r8d, r8d
mov edx, 0x104
lea rcx, [0x1800e5e10]
call fcn.180033c70
mov r8d, 0x103
lea rdx, [0x1800e5e10]
lea rcx, [rbp + 0x1a0]
call fcn.180035de4
mov word [rbp - 0x70], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
call fcn.180037550
call fcn.18004bf80
test eax, eax
je 0x180022ea3
lea r9, [0x18009ca98]
lea r8, [rbp + 0x1a0]
lea rdx, [0x18009c688]
lea rcx, [rbp - 0x70]
call fcn.180036368
cmp dword [0x1800e52c0], 0
je 0x180022cfd
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x30]
call fcn.180027390
mov rbx, rax
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
lea r9, str.CDetoursMgr::SetHook_2___s___08x_
lea r8, str.AgentU64
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800e5208]
call fcn.180018f90
nop
lea rcx, [rsp + 0x30]
call fcn.180025870
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180022bce
cmp dword [0x1800e52c0], 0
je 0x180022d38
lea r9, str.CDetoursMgr::SetHook_3
lea r8, str.AgentU64
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800e5208]
call fcn.180018f90
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x180022d70
lea rdx, str.HAFInitShareSeg
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180022d67
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.180022fc0
mov rbx, rdi
mov rsi, rdi
mov eax, edi
lea r8, reloc.WS2_32.dll_connect
mov rcx, r8
cmp dword [rcx], 4
je 0x180022d99
inc eax
add rcx, 0x38
cmp eax, 1
jb 0x180022d87
jmp 0x180022dba
movsxd rcx, eax
imul rcx, rcx, 0x38
mov rdx, qword [rcx + r8 + 8]
test rdx, rdx
je 0x180022dba
mov rax, qword [rcx + r8 + 0x10]
test rax, rax
je 0x180022dba
mov rbx, rdx
mov rsi, rax
cmp dword [0x1800e52c0], 0
je 0x180022dec
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
lea r9, str.CDetoursMgr::SetHook_7___08x__08x_
lea r8, str.AgentU64
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800e5208]
call fcn.180018f90
mov rdx, rsi
mov rcx, rbx
call fcn.180021fa0
cmp dword [0x1800e52c0], 0
je 0x180022e29
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
lea r9, str.CDetoursMgr::SetHook_8___08x__08x_
lea r8, str.AgentU64
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800e5208]
call fcn.180018f90
cmp dword [0x1800e5d48], 0
je 0x180022e71
mov ecx, dword [0x1800e5d88]
test ecx, ecx
jle 0x180022e67
mov rdx, qword [0x1800e5d80]
lea rax, [rdx + 8]
cmp qword [rax], rbx
je 0x180022e58
inc edi
add rax, 0x18
cmp edi, ecx
jl 0x180022e47
jmp 0x180022e67
movsxd rax, edi
lea r9, [rax + rax*2]
mov dword [rdx + r9*8], 1
mov dword [0x1800e5d78], 1
cmp dword [0x1800e52c0], 0
je 0x180022e9e
mov qword [rsp + 0x20], rbx
lea r9, str.CDetoursMgr::SetHook_9___08x_
lea r8, str.AgentU64
mov edx, reloc.WS2_32.dll_ntohs
lea rcx, [0x1800e5208]
call fcn.180018f90
mov edi, 1
mov eax, edi
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1800356a0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret