Function at 0x1800018e8
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 [0x18003e3b0]
xor rax, rsp
mov qword [rsp + 0x500], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x180042efc], eax
je 0x18000192e
mov eax, 0x10dd
jmp 0x180001c64
xor r14d, r14d
cmp dword [0x180042ef8], r14d
je 0x180001944
call fcn.1800017dc
jmp 0x180001c5e
mov rbx, qword [0x180042f20]
mov ebp, r14d
jmp 0x1800019d3
mov rdx, qword [rbx + 0x20]
cmp dword [rbx + 8], r14d
je 0x180001975
movzx r8d, byte [rdx + 0x3e]
add rdx, 0x20
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x18]
jmp 0x1800019c9
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 0x1800019c5
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 0x180001953
mov rdi, qword [0x180042f18]
jmp 0x180001ae8
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 0x180001ae5
mov rbx, qword [0x180042f20]
test rbx, rbx
je 0x180001ae5
mov rcx, qword [rsp + 0x128]
cmp dword [rbx + 8], r14d
je 0x180001a71
mov rdx, qword [rbx + 0x20]
cmp rcx, rdx
jb 0x180001ad9
lea rax, [rdx + 8]
cmp rcx, rax
jae 0x180001ad9
mov r9d, r14d
lea r8, [rdx + 0x40]
sub cl, dl
mov dl, byte [r8]
mov al, dl
shr al, 3
cmp al, cl
je 0x180001a65
inc r9d
inc r8
cmp r9d, 8
jb 0x180001a48
mov dl, r14b
jmp 0x180001a68
and dl, 7
movzx eax, dl
add rax, qword [rbx + 0x18]
jmp 0x180001aba
cmp rcx, qword [rbx + 0x18]
jb 0x180001ad9
mov r9, qword [rbx + 0x20]
movzx eax, byte [r9 + 0x3e]
add rax, qword [rbx + 0x18]
cmp rcx, rax
jae 0x180001ad9
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 0x180001ab1
inc r8d
inc rdx
cmp r8d, 8
jb 0x180001a93
mov eax, r14d
jmp 0x180001ab7
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 0x180001a1f
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1800019e8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, qword [0x180042f20]
mov rsi, rax
test rdi, rdi
je 0x180001b93
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 0x180001b77
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x180001b77
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.180031a5c
mov rdi, rbx
test rbx, rbx
jne 0x180001b0a
mov qword [0x180042f20], r14
test ebp, ebp
je 0x180001c1d
cmp dword [0x18003f544], r14d
jne 0x180001c1d
mov rcx, qword [0x180042f10]
lea rbx, [0x180042f10]
jmp 0x180001c18
cmp dword [rcx], 0x52727464
jne 0x180001c92
lea r8, [rcx + 0x10000]
mov edx, r14d
lea rax, [rcx + 0xa8]
cmp qword [rax], r14
je 0x180001beb
cmp qword [rax], rcx
jb 0x180001c92
cmp qword [rax], r8
jae 0x180001c92
inc edx
add rax, 0x60
cmp edx, 0x2a9
jb 0x180001bd4
mov rax, qword [rcx + 8]
xor edx, edx
mov r8d, 0x8000
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x180042f00], r14
mov rcx, qword [rbx]
test rcx, rcx
jne 0x180001bb7
call fcn.1800011f4
mov rdi, qword [0x180042f18]
test rdi, rdi
je 0x180001c50
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rdi]
mov edx, 0x10
mov rcx, rdi
call fcn.180031a5c
mov rdi, rbx
test rbx, rbx
jne 0x180001c2e
mov qword [0x180042f18], r14
mov dword [0x180042efc], r14d
mov eax, dword [0x180042ef8]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.180031a00
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 0x180001c15