Function at 0x180009150
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180009710
mov qword [rsp + 0x28], 0
cmp qword [0x180054408], 0
jne 0x180009198
cmp qword [0x180054400], 0
je 0x180009198
mov rax, qword [0x180054400]
mov qword [0x180054408], rax
cmp qword [0x180054408], 0
je 0x18000923e
mov rax, qword [0x180054408]
cmp qword [rax + 0x10], 0
je 0x18000923e
mov rax, qword [0x180054408]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000923e
mov rax, qword [0x180054408]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000923e
mov rax, qword [0x180054408]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180009204
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000920b
xor eax, eax
jmp 0x1800093e8
mov rax, qword [0x180054408]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.180015b40
mov rax, qword [rsp + 0x28]
jmp 0x1800093e8
mov rax, qword [0x180054400]
mov qword [0x180054408], rax
jmp 0x180009260
mov rax, qword [0x180054408]
mov rax, qword [rax + 8]
mov qword [0x180054408], rax
cmp qword [0x180054408], 0
je 0x1800092ad
cmp qword [0x180054408], 0
je 0x1800092ab
mov rax, qword [0x180054408]
cmp qword [rax + 0x10], 0
je 0x1800092ab
mov rax, qword [0x180054408]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800092ab
mov rax, qword [0x180054408]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800092ab
jmp 0x1800091dc
jmp 0x18000924e
mov rcx, qword [rsp + 0x60]
call fcn.18000bf30
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800093f0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1800093da
mov rax, qword [rsp + 0x48]
mov qword [0x180054408], rax
mov rax, qword [0x180054408]
mov dword [rax], 0x52727464
mov rax, qword [0x180054408]
mov qword [rax + 0x10], 0
mov rax, qword [0x180054408]
mov rcx, qword [0x180054400]
mov qword [rax + 8], rcx
mov rax, qword [0x180054408]
mov qword [0x180054400], rax
mov rax, qword [0x180054408]
add rax, 0xffff
mov r8, rax
mov rdx, qword [0x180054408]
lea rcx, str.__Allocated_region__p.._p_n_n
call fcn.18000bf90
mov qword [rsp + 0x40], 0
mov rax, qword [0x180054408]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18000938b
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800093c5
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x180009381
mov rax, qword [0x180054408]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800091dc
lea rcx, str.Couldnt_find_available_memory_region__n
call fcn.18000bf90
xor eax, eax
add rsp, 0x58
ret