Function at 0x180002590
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x70], 0x7ff80000
jbe 0x1800025b6
mov rax, qword [rsp + 0x70]
sub rax, 0x7ff80000
mov qword [rsp + 0x50], rax
jmp 0x1800025bf
mov qword [rsp + 0x50], 0x10000
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x70], 0xffffffff80000000
jae 0x1800025e6
mov rax, qword [rsp + 0x70]
add rax, 0x7ff80000
mov qword [rsp + 0x58], rax
jmp 0x1800025ef
mov qword [rsp + 0x58], 0xfffffffffff80000
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
cmp qword [0x18006a378], 0
jne 0x180002624
cmp qword [0x18006a370], 0
je 0x180002624
mov rax, qword [0x18006a370]
mov qword [0x18006a378], rax
cmp qword [0x18006a378], 0
je 0x1800026ca
mov rax, qword [0x18006a378]
cmp qword [rax + 0x10], 0
je 0x1800026ca
mov rcx, qword [0x18006a378]
mov rax, qword [rsp + 0x28]
cmp qword [rcx + 0x10], rax
jb 0x1800026ca
mov rcx, qword [0x18006a378]
mov rax, qword [rsp + 0x30]
cmp qword [rcx + 0x10], rax
ja 0x1800026ca
mov rax, qword [0x18006a378]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x38], rax
jb 0x180002690
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jbe 0x180002697
xor eax, eax
jmp 0x180002910
mov rcx, qword [0x18006a378]
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 sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x38]
jmp 0x180002910
mov rax, qword [0x18006a370]
mov qword [0x18006a378], rax
jmp 0x1800026ec
mov rax, qword [0x18006a378]
mov rax, qword [rax + 8]
mov qword [0x18006a378], rax
cmp qword [0x18006a378], 0
je 0x180002739
cmp qword [0x18006a378], 0
je 0x180002737
mov rax, qword [0x18006a378]
cmp qword [rax + 0x10], 0
je 0x180002737
mov rcx, qword [0x18006a378]
mov rax, qword [rsp + 0x28]
cmp qword [rcx + 0x10], rax
jb 0x180002737
mov rcx, qword [0x18006a378]
mov rax, qword [rsp + 0x30]
cmp qword [rcx + 0x10], rax
ja 0x180002737
jmp 0x180002668
jmp 0x1800026da
mov rcx, qword [rsp + 0x70]
call fcn.180002920
and eax, 0xffff
mov ecx, eax
mov rax, qword [rsp + 0x70]
sub rax, rcx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x20], 0
cmp qword [rsp + 0x20], 0
jne 0x1800027b1
cmp qword [rsp + 0x70], 0x40000000
jbe 0x1800027b1
mov rcx, qword [rsp + 0x70]
sub rcx, 0x40000000
mov rdx, qword [rsp + 0x70]
call fcn.180002930
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1800027b1
mov rdx, qword [rsp + 0x70]
sub rdx, 0x40000000
mov rcx, qword [rsp + 0x28]
call fcn.180002a80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180002808
movabs rax, 0xffffffff40000000
cmp qword [rsp + 0x70], rax
jae 0x180002808
mov rdx, qword [rsp + 0x70]
add rdx, 0x40000000
mov rcx, qword [rsp + 0x70]
call fcn.180002a80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180002808
mov rcx, qword [rsp + 0x70]
add rcx, 0x40000000
mov rdx, qword [rsp + 0x30]
call fcn.180002930
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180002824
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
call fcn.180002a80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x180002840
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
call fcn.180002930
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000290e
mov rax, qword [rsp + 0x20]
mov qword [0x18006a378], rax
mov rax, qword [0x18006a378]
mov dword [rax], 0x52727464
mov rax, qword [0x18006a378]
mov qword [rax + 0x10], 0
mov rcx, qword [0x18006a378]
mov rax, qword [0x18006a370]
mov qword [rcx + 8], rax
mov rax, qword [0x18006a378]
mov qword [0x18006a370], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18006a378]
add rax, 0x60
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x48], 0x2a8
jmp 0x1800028c2
mov eax, dword [rsp + 0x48]
sub eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 1
jle 0x1800028f9
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 0x1800028b7
mov rcx, qword [0x18006a378]
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
jmp 0x180002668
xor eax, eax
add rsp, 0x68
ret