Function at 0x1800018f4
Capabilities:
Hook routines via microsoft detours
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x510
mov rax, qword [0x18003f3c0]
xor rax, rsp
mov qword [rsp + 0x500], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x180043f2c], eax
je 0x18000193a
mov eax, 0x10dd
jmp 0x180001c70
xor r14d, r14d
cmp dword [0x180043f28], r14d
je 0x180001950
call fcn.1800017e8
jmp 0x180001c6a
mov rbx, qword [0x180043f50]
mov ebp, r14d
jmp 0x1800019df
mov rdx, qword [rbx + 0x20]
cmp dword [rbx + 8], r14d
je 0x180001981
movzx r8d, byte [rdx + 0x3e]
add rdx, 0x20
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x18]
jmp 0x1800019d5
lea rcx, [rdx + 0x58]
mov word [rcx], 0x25ff
lea rax, [rcx + 6]
sub edx, eax
add edx, 0x50
mov dword [rcx + 2], edx
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x20]
add rcx, 0x58
mov byte [rdx], 0xe9
lea rax, [rdx + 5]
sub ecx, eax
mov dword [rdx + 1], ecx
lea rcx, [rdx + 5]
mov rax, qword [rbx + 0x20]
mov r8, qword [rax + 0x48]
sub r8, rcx
cmp rcx, qword [rax + 0x48]
cmova r8, r14
test r8, r8
je 0x1800019d1
mov dl, 0xcc
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18000195f
mov rdi, qword [0x180043f48]
jmp 0x180001af4
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x100001
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180001af1
mov rbx, qword [0x180043f50]
test rbx, rbx
je 0x180001af1
mov rcx, qword [rsp + 0x128]
cmp dword [rbx + 8], r14d
je 0x180001a7d
mov rdx, qword [rbx + 0x20]
cmp rcx, rdx
jb 0x180001ae5
lea rax, [rdx + 8]
cmp rcx, rax
jae 0x180001ae5
mov r9d, r14d
lea r8, [rdx + 0x40]
sub cl, dl
mov dl, byte [r8]
mov al, dl
shr al, 3
cmp al, cl
je 0x180001a71
inc r9d
inc r8
cmp r9d, 8
jb 0x180001a54
mov dl, r14b
jmp 0x180001a74
and dl, 7
movzx eax, dl
add rax, qword [rbx + 0x18]
jmp 0x180001ac6
cmp rcx, qword [rbx + 0x18]
jb 0x180001ae5
mov r9, qword [rbx + 0x20]
movzx eax, byte [r9 + 0x3e]
add rax, qword [rbx + 0x18]
cmp rcx, rax
jae 0x180001ae5
sub cl, byte [rbx + 0x18]
lea rdx, [r9 + 0x40]
mov r8d, r14d
movzx r10d, byte [rdx]
mov al, r10b
and al, 7
cmp al, cl
je 0x180001abd
inc r8d
inc rdx
cmp r8d, 8
jb 0x180001a9f
mov eax, r14d
jmp 0x180001ac3
mov eax, r10d
shr eax, 3
add rax, r9
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x128], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x128]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180001a2b
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1800019f4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, qword [0x180043f50]
mov rsi, rax
test rdi, rdi
je 0x180001b9f
mov rcx, qword [rdi + 0x20]
lea r9, [rsp + 0x20]
mov r8d, dword [rdi + 0x28]
movzx edx, byte [rcx + 0x3e]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rdi + 0x20]
mov rcx, rsi
mov rdx, qword [rdi + 0x18]
movzx r8d, byte [rax + 0x3e]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [rdi + 8], r14d
je 0x180001b83
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x180001b83
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rdx, rbx
mov ebp, 1
and rdx, 0xffffffffffff0000
mov rax, qword [rdx + 0x10]
mov qword [rbx + 0x48], rax
mov qword [rdx + 0x10], rbx
mov qword [rdi + 0x20], r14
mov rbx, qword [rdi]
mov edx, 0x30
mov rcx, rdi
call fcn.180031d3c
mov rdi, rbx
test rbx, rbx
jne 0x180001b16
mov qword [0x180043f50], r14
test ebp, ebp
je 0x180001c29
cmp dword [0x180040574], r14d
jne 0x180001c29
mov rcx, qword [0x180043f40]
lea rbx, [0x180043f40]
jmp 0x180001c24
cmp dword [rcx], 0x52727464
jne 0x180001c9e
lea r8, [rcx + 0x10000]
mov edx, r14d
lea rax, [rcx + 0xa8]
cmp qword [rax], r14
je 0x180001bf7
cmp qword [rax], rcx
jb 0x180001c9e
cmp qword [rax], r8
jae 0x180001c9e
inc edx
add rax, 0x60
cmp edx, 0x2a9
jb 0x180001be0
mov rax, qword [rcx + 8]
xor edx, edx
mov r8d, 0x8000
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x180043f30], r14
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180001bc3
call fcn.1800011f4
mov rdi, qword [0x180043f48]
test rdi, rdi
je 0x180001c5c
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rdi]
mov edx, 0x10
mov rcx, rdi
call fcn.180031d3c
mov rdi, rbx
test rbx, rbx
jne 0x180001c3a
mov qword [0x180043f48], r14
mov dword [0x180043f2c], r14d
mov eax, dword [0x180043f28]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.180031ce0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
lea rbx, [rcx + 8]
jmp 0x180001c21