Function at 0x18008d2d0
Capabilities:
Hook routines via microsoft detours

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x68]
lea r8, [rsp + 0x60]
call fcn.18008b7b0
mov qword [rsp + 0x48], 0
cmp qword [0x1802b01a8], 0
jne 0x18008d32f
cmp qword [0x1802b01a0], 0
je 0x18008d32f
mov rax, qword [0x1802b01a0]
mov qword [0x1802b01a8], rax
cmp qword [0x1802b01a8], 0
je 0x18008d3f6
mov rax, qword [0x1802b01a8]
cmp qword [rax + 0x10], 0
je 0x18008d3f6
mov rax, qword [0x1802b01a8]
mov rax, qword [rax + 0x10]
cmp rax, qword [rsp + 0x68]
jb 0x18008d3f6
mov rax, qword [0x1802b01a8]
mov rax, qword [rax + 0x10]
cmp rax, qword [rsp + 0x60]
ja 0x18008d3f6
jmp 0x18008d380
mov rax, qword [0x1802b01a8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp rax, qword [rsp + 0x68]
jb 0x18008d3b0
mov rax, qword [rsp + 0x48]
cmp rax, qword [rsp + 0x60]
jbe 0x18008d3be
mov qword [rsp + 0x58], 0
jmp 0x18008d598
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 0x48]
mov rax, qword [0x1802b01a8]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x48]
mov edx, 0xcc
mov r8d, 0x60
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x58], rax
jmp 0x18008d598
mov rax, qword [0x1802b01a0]
mov qword [0x1802b01a8], rax
cmp qword [0x1802b01a8], 0
je 0x18008d47f
cmp qword [0x1802b01a8], 0
je 0x18008d463
mov rax, qword [0x1802b01a8]
cmp qword [rax + 0x10], 0
je 0x18008d463
mov rax, qword [0x1802b01a8]
mov rax, qword [rax + 0x10]
cmp rax, qword [rsp + 0x68]
jb 0x18008d463
mov rax, qword [0x1802b01a8]
mov rax, qword [rax + 0x10]
cmp rax, qword [rsp + 0x60]
ja 0x18008d463
jmp 0x18008d380
jmp 0x18008d468
mov rax, qword [0x1802b01a8]
mov rax, qword [rax + 8]
mov qword [0x1802b01a8], rax
jmp 0x18008d404
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
and rcx, 0xffff
mov ecx, ecx
mov edx, ecx
xor ecx, ecx
sub rcx, rdx
add rax, rcx
mov qword [rsp + 0x50], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
call fcn.18008b8f0
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x18008d58f
mov rax, qword [rsp + 0x40]
mov qword [0x1802b01a8], rax
mov rax, qword [0x1802b01a8]
mov dword [rax], 0x52727464
mov rax, qword [0x1802b01a8]
mov qword [rax + 0x10], 0
mov rcx, qword [0x1802b01a0]
mov rax, qword [0x1802b01a8]
mov qword [rax + 8], rcx
mov rax, qword [0x1802b01a8]
mov qword [0x1802b01a0], rax
mov qword [rsp + 0x38], 0
mov rax, qword [0x1802b01a8]
add rax, 0x60
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x34], 0x2a8
cmp dword [rsp + 0x34], 1
jle 0x18008d57a
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x48]
movsxd rdx, dword [rsp + 0x34]
imul rdx, rdx, 0x60
add rax, rdx
mov qword [rax + 0x48], rcx
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rsp + 0x34]
imul rcx, rcx, 0x60
add rax, rcx
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x34]
add eax, 0xffffffff
mov dword [rsp + 0x34], eax
jmp 0x18008d52f
mov rcx, qword [rsp + 0x38]
mov rax, qword [0x1802b01a8]
mov qword [rax + 0x10], rcx
jmp 0x18008d380
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.18008fc60
mov rax, qword [rsp + 0x28]
add rsp, 0x78
ret