Function at 0x180011010
Capabilities:
Hook routines via microsoft detours

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
lea r8, [rsp + 0x48]
call fcn.18000f820
mov qword [rsp + 0x40], 0
cmp qword [0x18003d000], 0
jne 0x180011060
cmp qword [0x18003cff8], 0
je 0x180011060
mov rax, qword [0x18003cff8]
mov qword [0x18003d000], rax
cmp qword [0x18003d000], 0
je 0x180011127
mov rax, qword [0x18003d000]
cmp qword [rax + 0x10], 0
je 0x180011127
mov rax, qword [0x18003d000]
mov rax, qword [rax + 0x10]
cmp rax, qword [rsp + 0x50]
jb 0x180011127
mov rax, qword [0x18003d000]
mov rax, qword [rax + 0x10]
cmp rax, qword [rsp + 0x48]
ja 0x180011127
jmp 0x1800110b1
mov rax, qword [0x18003d000]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x50]
jb 0x1800110e1
mov rax, qword [rsp + 0x40]
cmp rax, qword [rsp + 0x48]
jbe 0x1800110ef
mov qword [rsp + 0x60], 0
jmp 0x1800112d9
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x48]
mov rax, qword [0x18003d000]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x40]
mov edx, 0xcc
mov r8d, 0x60
call fcn.18001f080
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
jmp 0x1800112d9
mov rax, qword [0x18003cff8]
mov qword [0x18003d000], rax
cmp qword [0x18003d000], 0
je 0x1800111b0
cmp qword [0x18003d000], 0
je 0x180011194
mov rax, qword [0x18003d000]
cmp qword [rax + 0x10], 0
je 0x180011194
mov rax, qword [0x18003d000]
mov rax, qword [rax + 0x10]
cmp rax, qword [rsp + 0x50]
jb 0x180011194
mov rax, qword [0x18003d000]
mov rax, qword [rax + 0x10]
cmp rax, qword [rsp + 0x48]
ja 0x180011194
jmp 0x1800110b1
jmp 0x180011199
mov rax, qword [0x18003d000]
mov rax, qword [rax + 8]
mov qword [0x18003d000], rax
jmp 0x180011135
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x58]
call fcn.180011f80
mov ecx, eax
mov rax, qword [rsp + 0x20]
and ecx, 0xffff
mov ecx, ecx
mov edx, ecx
xor ecx, ecx
sub rcx, rdx
add rax, rcx
mov qword [rsp + 0x58], rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.18000f960
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1800112d0
mov rax, qword [rsp + 0x38]
mov qword [0x18003d000], rax
mov rax, qword [0x18003d000]
mov dword [rax], 0x52727464
mov rax, qword [0x18003d000]
mov qword [rax + 0x10], 0
mov rcx, qword [0x18003cff8]
mov rax, qword [0x18003d000]
mov qword [rax + 8], rcx
mov rax, qword [0x18003d000]
mov qword [0x18003cff8], rax
mov qword [rsp + 0x30], 0
mov rax, qword [0x18003d000]
add rax, 0x60
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x2c], 0x2a8
cmp dword [rsp + 0x2c], 1
jle 0x1800112bb
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
movsxd rdx, dword [rsp + 0x2c]
imul rdx, rdx, 0x60
add rax, rdx
mov qword [rax + 0x48], rcx
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rsp + 0x2c]
imul rcx, rcx, 0x60
add rax, rcx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x2c]
add eax, 0xffffffff
mov dword [rsp + 0x2c], eax
jmp 0x180011270
mov rcx, qword [rsp + 0x30]
mov rax, qword [0x18003d000]
mov qword [rax + 0x10], rcx
jmp 0x1800110b1
mov qword [rsp + 0x60], 0
mov rax, qword [rsp + 0x60]
add rsp, 0x68
ret