Function at 0x14004f780
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.14004faf0
mov qword [rsp + 0x38], 0
cmp qword [0x1400823e8], 0
jne 0x14004f7c8
cmp qword [0x1400823e0], 0
je 0x14004f7c8
mov rax, qword [0x1400823e0]
mov qword [0x1400823e8], rax
cmp qword [0x1400823e8], 0
je 0x14004f86e
mov rax, qword [0x1400823e8]
cmp qword [rax + 0x10], 0
je 0x14004f86e
mov rcx, qword [0x1400823e8]
mov rax, qword [rsp + 0x28]
cmp qword [rcx + 0x10], rax
jb 0x14004f86e
mov rcx, qword [0x1400823e8]
mov rax, qword [rsp + 0x30]
cmp qword [rcx + 0x10], rax
ja 0x14004f86e
mov rax, qword [0x1400823e8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x38], rax
jb 0x14004f834
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
jbe 0x14004f83b
xor eax, eax
jmp 0x14004fad0
mov rcx, qword [0x1400823e8]
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.1400452b0
mov rax, qword [rsp + 0x38]
jmp 0x14004fad0
mov rax, qword [0x1400823e0]
mov qword [0x1400823e8], rax
jmp 0x14004f890
mov rax, qword [0x1400823e8]
mov rax, qword [rax + 8]
mov qword [0x1400823e8], rax
cmp qword [0x1400823e8], 0
je 0x14004f8dd
cmp qword [0x1400823e8], 0
je 0x14004f8db
mov rax, qword [0x1400823e8]
cmp qword [rax + 0x10], 0
je 0x14004f8db
mov rcx, qword [0x1400823e8]
mov rax, qword [rsp + 0x28]
cmp qword [rcx + 0x10], rax
jb 0x14004f8db
mov rcx, qword [0x1400823e8]
mov rax, qword [rsp + 0x30]
cmp qword [rcx + 0x10], rax
ja 0x14004f8db
jmp 0x14004f80c
jmp 0x14004f87e
mov rcx, qword [rsp + 0x60]
call fcn.14004fae0
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 0x14004f932
cmp qword [rsp + 0x60], 0x40000000
jbe 0x14004f932
mov rdx, qword [rsp + 0x60]
sub rdx, 0x40000000
mov rcx, qword [rsp + 0x28]
call fcn.14004fde0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004f966
movabs rax, 0xffffffff40000000
cmp qword [rsp + 0x60], rax
jae 0x14004f966
mov rcx, qword [rsp + 0x60]
add rcx, 0x40000000
mov rdx, qword [rsp + 0x30]
call fcn.14004fc80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004f994
cmp qword [rsp + 0x60], 0x40000000
jbe 0x14004f994
mov rcx, qword [rsp + 0x60]
sub rcx, 0x40000000
mov rdx, qword [rsp + 0x60]
call fcn.14004fc80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004f9c8
movabs rax, 0xffffffff40000000
cmp qword [rsp + 0x60], rax
jae 0x14004f9c8
mov rdx, qword [rsp + 0x60]
add rdx, 0x40000000
mov rcx, qword [rsp + 0x60]
call fcn.14004fde0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004f9e4
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call fcn.14004fde0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14004fa00
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x60]
call fcn.14004fc80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14004face
mov rax, qword [rsp + 0x20]
mov qword [0x1400823e8], rax
mov rax, qword [0x1400823e8]
mov dword [rax], 0x52727464
mov rax, qword [0x1400823e8]
mov qword [rax + 0x10], 0
mov rcx, qword [0x1400823e8]
mov rax, qword [0x1400823e0]
mov qword [rcx + 8], rax
mov rax, qword [0x1400823e8]
mov qword [0x1400823e0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x1400823e8]
add rax, 0x60
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x48], 0x2a8
jmp 0x14004fa82
mov eax, dword [rsp + 0x48]
sub eax, 1
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 1
jle 0x14004fab9
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 0x14004fa77
mov rcx, qword [0x1400823e8]
mov rax, qword [rsp + 0x40]
mov qword [rcx + 0x10], rax
jmp 0x14004f80c
xor eax, eax
add rsp, 0x58
ret