Function at 0x1800a6eb0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call fcn.1800a7220
mov qword [rsp + 0x38], 0
cmp qword [0x1801082d8], 0
jne 0x1800a6ef8
cmp qword [0x1801082d0], 0
je 0x1800a6ef8
mov rax, qword [0x1801082d0]
mov qword [0x1801082d8], rax
cmp qword [0x1801082d8], 0
je 0x1800a6f9e
mov rax, qword [0x1801082d8]
cmp qword [rax + 0x10], 0
je 0x1800a6f9e
mov rcx, qword [0x1801082d8]
mov rax, qword [rsp + 0x28]
cmp qword [rcx + 0x10], rax
jb 0x1800a6f9e
mov rcx, qword [0x1801082d8]
mov rax, qword [rsp + 0x30]
cmp qword [rcx + 0x10], rax
ja 0x1800a6f9e
mov rax, qword [0x1801082d8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x38], rax
jb 0x1800a6f64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jbe 0x1800a6f6b
xor eax, eax
jmp 0x1800a7200
mov rcx, qword [0x1801082d8]
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x48]
mov qword [rcx + 0x10], rax
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x38]
call fcn.18009e990
mov rax, qword [rsp + 0x38]
jmp 0x1800a7200
mov rax, qword [0x1801082d0]
mov qword [0x1801082d8], rax
jmp 0x1800a6fc0
mov rax, qword [0x1801082d8]
mov rax, qword [rax + 8]
mov qword [0x1801082d8], rax
cmp qword [0x1801082d8], 0
je 0x1800a700d
cmp qword [0x1801082d8], 0
je 0x1800a700b
mov rax, qword [0x1801082d8]
cmp qword [rax + 0x10], 0
je 0x1800a700b
mov rcx, qword [0x1801082d8]
mov rax, qword [rsp + 0x28]
cmp qword [rcx + 0x10], rax
jb 0x1800a700b
mov rcx, qword [0x1801082d8]
mov rax, qword [rsp + 0x30]
cmp qword [rcx + 0x10], rax
ja 0x1800a700b
jmp 0x1800a6f3c
jmp 0x1800a6fae
mov rcx, qword [rsp + 0x60]
call fcn.1800a7210
and eax, 0xffff
mov ecx, eax
mov rax, qword [rsp + 0x60]
sub rax, rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x20], 0
jne 0x1800a7062
cmp qword [rsp + 0x60], 0x40000000
jbe 0x1800a7062
mov rdx, qword [rsp + 0x60]
sub rdx, 0x40000000
mov rcx, qword [rsp + 0x28]
call fcn.1800a7510
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800a7096
movabs rax, 0xffffffff40000000
cmp qword [rsp + 0x60], rax
jae 0x1800a7096
mov rcx, qword [rsp + 0x60]
add rcx, 0x40000000
mov rdx, qword [rsp + 0x30]
call fcn.1800a73b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800a70c4
cmp qword [rsp + 0x60], 0x40000000
jbe 0x1800a70c4
mov rcx, qword [rsp + 0x60]
sub rcx, 0x40000000
mov rdx, qword [rsp + 0x60]
call fcn.1800a73b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800a70f8
movabs rax, 0xffffffff40000000
cmp qword [rsp + 0x60], rax
jae 0x1800a70f8
mov rdx, qword [rsp + 0x60]
add rdx, 0x40000000
mov rcx, qword [rsp + 0x60]
call fcn.1800a7510
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800a7114
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call fcn.1800a7510
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800a7130
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.1800a73b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1800a71fe
mov rax, qword [rsp + 0x20]
mov qword [0x1801082d8], rax
mov rax, qword [0x1801082d8]
mov dword [rax], 0x52727464
mov rax, qword [0x1801082d8]
mov qword [rax + 0x10], 0
mov rcx, qword [0x1801082d8]
mov rax, qword [0x1801082d0]
mov qword [rcx + 8], rax
mov rax, qword [0x1801082d8]
mov qword [0x1801082d0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1801082d8]
add rax, 0x60
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x48], 0x2a8
jmp 0x1800a71b2
mov eax, dword [rsp + 0x48]
sub eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 1
jle 0x1800a71e9
movsxd rdx, dword [rsp + 0x48]
imul rdx, rdx, 0x60
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
mov qword [rcx + rdx + 0x48], rax
movsxd rcx, dword [rsp + 0x48]
imul rcx, rcx, 0x60
mov rax, qword [rsp + 0x38]
add rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1800a71a7
mov rcx, qword [0x1801082d8]
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
jmp 0x1800a6f3c
xor eax, eax
add rsp, 0x58
ret