Function at 0x180013a60
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x80
lea rdi, [rsp + 0x20]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x90]
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x90]
call fcn.1800114e7
mov qword [rsp + 0x58], 0
cmp qword [0x180028480], 0
jne 0x180013ac8
cmp qword [0x180028478], 0
je 0x180013ac8
mov rax, qword [0x180028478]
mov qword [0x180028480], rax
cmp qword [0x180028480], 0
je 0x180013b6e
mov rax, qword [0x180028480]
cmp qword [rax + 0x10], 0
je 0x180013b6e
mov rax, qword [0x180028480]
mov rcx, qword [rsp + 0x28]
cmp qword [rax + 0x10], rcx
jb 0x180013b6e
mov rax, qword [0x180028480]
mov rcx, qword [rsp + 0x48]
cmp qword [rax + 0x10], rcx
ja 0x180013b6e
mov rax, qword [0x180028480]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x58], rax
jb 0x180013b34
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x58], rax
jbe 0x180013b3b
xor eax, eax
jmp 0x180013e0a
mov rax, qword [0x180028480]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x58]
call fcn.1800113ed
mov rax, qword [rsp + 0x58]
jmp 0x180013e0a
mov rax, qword [0x180028478]
mov qword [0x180028480], rax
jmp 0x180013b90
mov rax, qword [0x180028480]
mov rax, qword [rax + 8]
mov qword [0x180028480], rax
cmp qword [0x180028480], 0
je 0x180013bdd
cmp qword [0x180028480], 0
je 0x180013bdb
mov rax, qword [0x180028480]
cmp qword [rax + 0x10], 0
je 0x180013bdb
mov rax, qword [0x180028480]
mov rcx, qword [rsp + 0x28]
cmp qword [rax + 0x10], rcx
jb 0x180013bdb
mov rax, qword [0x180028480]
mov rcx, qword [rsp + 0x48]
cmp qword [rax + 0x10], rcx
ja 0x180013bdb
jmp 0x180013b0c
jmp 0x180013b7e
mov rcx, qword [rsp + 0x90]
call fcn.180011168
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x90]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x60], 0
cmp qword [rsp + 0x60], 0
jne 0x180013c46
cmp qword [rsp + 0x90], 0x40000000
jbe 0x180013c46
mov rax, qword [rsp + 0x90]
sub rax, 0x40000000
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call fcn.180013660
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x180013c82
movabs rax, 0xffffffff40000000
cmp qword [rsp + 0x90], rax
jae 0x180013c82
mov rax, qword [rsp + 0x90]
add rax, 0x40000000
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.180013800
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x180013cbb
cmp qword [rsp + 0x90], 0x40000000
jbe 0x180013cbb
mov rax, qword [rsp + 0x90]
sub rax, 0x40000000
mov rdx, qword [rsp + 0x90]
mov rcx, rax
call fcn.180013800
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x180013cfa
movabs rax, 0xffffffff40000000
cmp qword [rsp + 0x90], rax
jae 0x180013cfa
mov rax, qword [rsp + 0x90]
add rax, 0x40000000
mov rdx, rax
mov rcx, qword [rsp + 0x90]
call fcn.180013660
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x180013d19
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
call fcn.180013660
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x180013d38
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x90]
call fcn.180013800
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x180013e08
mov rax, qword [rsp + 0x60]
mov qword [0x180028480], rax
mov rax, qword [0x180028480]
mov dword [rax], 0x52727464
mov rax, qword [0x180028480]
mov qword [rax + 0x10], 0
mov rax, qword [0x180028480]
mov rcx, qword [0x180028478]
mov qword [rax + 8], rcx
mov rax, qword [0x180028480]
mov qword [0x180028478], rax
mov qword [rsp + 0x68], 0
mov rax, qword [0x180028480]
add rax, 0x60
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x70], 0x2a8
jmp 0x180013db9
mov eax, dword [rsp + 0x70]
dec eax
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 1
jle 0x180013df3
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x70]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
jmp 0x180013daf
mov rax, qword [0x180028480]
mov rcx, qword [rsp + 0x68]
mov qword [rax + 0x10], rcx
jmp 0x180013b0c
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180024180]
call fcn.180011447
mov rax, rdi
add rsp, 0x80
pop rdi
ret