Function at 0x18000dd70
Capabilities:
Hook routines via microsoft detours

Disassembly:
xor ecx, ecx
jmp 0x18000dd80
mov qword [rsp + 8], rcx
sub rsp, 0x508
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1800705f8], eax
je 0x18000dda7
mov eax, 0x10dd
add rsp, 0x508
ret
cmp dword [0x1800705fc], 0
je 0x18000ddc3
call fcn.18000dc20
mov eax, dword [0x1800705fc]
add rsp, 0x508
ret
mov qword [rsp + 0x518], rbx
mov rbx, qword [0x180070610]
mov qword [rsp + 0x520], rbp
mov qword [rsp + 0x500], rdi
mov qword [rsp + 0x4f8], r12
mov qword [rsp + 0x4f0], r13
xor r13d, r13d
test rbx, rbx
mov r12d, r13d
je 0x18000de91
cmp dword [rbx + 8], r12d
je 0x18000de2a
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x18]
movzx r8d, byte [rdx + 0x3e]
add rdx, 0x20
call sub.MSVCR80.dll_memcpy
mov r11, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
mov qword [r11], rax
jmp 0x18000de85
mov rax, qword [rbx + 0x20]
mov byte [rax + 0x58], 0xff
mov byte [rax + 0x59], 0x25
lea rcx, [rax + 0x58]
lea rdx, [rax + 0x50]
lea rax, [rcx + 6]
sub edx, eax
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
mov rax, qword [rbx + 0x20]
lea rcx, [rdx + 5]
mov r8, qword [rax + 0x48]
cmp rcx, r8
jae 0x18000de7a
sub r8, rcx
mov dl, 0xcc
call sub.MSVCR80.dll_memset
mov rcx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x20]
mov qword [rcx], rax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18000de01
mov rdi, qword [0x180070608]
test rdi, rdi
je 0x18000e003
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100001
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18000dff7
mov rbx, qword [0x180070610]
test rbx, rbx
je 0x18000dff7
mov rcx, qword [rsp + 0x118]
nop
nop
cmp dword [rbx + 8], r12d
je 0x18000df6e
mov r8, qword [rbx + 0x20]
cmp rcx, r8
jb 0x18000dfeb
lea rax, [r8 + 8]
cmp rcx, rax
jae 0x18000dfeb
movzx r9d, byte [rsp + 0x118]
mov edx, r13d
mov rcx, r13
sub r9b, r8b
nop
nop
nop
movzx eax, byte [r8 + rcx + 0x40]
shr al, 3
cmp al, r9b
je 0x18000df3e
add edx, 1
add rcx, 1
cmp edx, 8
jb 0x18000df20
xor al, al
jmp 0x18000df46
movzx eax, byte [rcx + r8 + 0x40]
and al, 7
mov rcx, qword [rdi + 8]
movzx eax, al
lea rdx, [rsp + 0x20]
add rax, qword [rbx + 0x18]
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x118]
jmp 0x18000dfeb
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jb 0x18000dfeb
mov r8, qword [rbx + 0x20]
movzx eax, byte [r8 + 0x3e]
add rax, rdx
cmp rcx, rax
jae 0x18000dfeb
movzx r9d, byte [rsp + 0x118]
mov edx, r13d
mov rcx, r13
sub r9b, byte [rbx + 0x18]
nop
nop
movzx eax, byte [r8 + rcx + 0x40]
and al, 7
cmp al, r9b
je 0x18000dfbe
add edx, 1
add rcx, 1
cmp edx, 8
jb 0x18000dfa0
mov eax, r13d
jmp 0x18000dfc7
movzx eax, byte [rcx + r8 + 0x40]
shr eax, 3
mov rcx, qword [rdi + 8]
cdqe
lea rdx, [rsp + 0x20]
add rax, r8
mov qword [rsp + 0x118], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x118]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18000dee0
mov rdi, qword [rdi]
test rdi, rdi
jne 0x18000dea1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, qword [0x180070610]
test rdi, rdi
mov rbp, rax
je 0x18000e0c0
mov qword [rsp + 0x528], rsi
nop
nop
nop
mov rcx, qword [rdi + 0x20]
mov r8d, dword [rdi + 0x28]
lea r9, [rsp + 0x510]
movzx edx, byte [rcx + 0x3e]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r11, qword [rdi + 0x20]
mov rdx, qword [rdi + 0x18]
movzx r8d, byte [r11 + 0x3e]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [rdi + 8], r13d
je 0x18000e0a1
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x18000e0a1
xor edx, edx
mov rbx, rsi
mov rcx, rsi
lea r8d, [rdx + 0x60]
and rbx, 0xffffffffffff0000
call sub.MSVCR80.dll_memset
mov rax, qword [rbx + 0x10]
mov r12d, 1
mov qword [rsi + 0x48], rax
mov qword [rbx + 0x10], rsi
mov qword [rdi + 0x20], r13
mov rbx, qword [rdi]
mov rcx, rdi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void____ptr64_
test rbx, rbx
mov rdi, rbx
jne 0x18000e030
mov rsi, qword [rsp + 0x528]
mov rbp, qword [rsp + 0x520]
test r12d, r12d
mov r12, qword [rsp + 0x4f8]
mov qword [0x180070610], r13
je 0x18000e16d
cmp dword [0x1800705f4], r13d
jne 0x18000e16d
mov rcx, qword [0x1800705e0]
lea rbx, [0x1800705e0]
test rcx, rcx
je 0x18000e16d
cmp dword [rcx], 0x52727464
jne 0x18000e161
lea r9, [rcx + 0x10000]
mov r8d, r13d
lea rdx, [rcx + 0xa8]
nop
nop
mov rax, qword [rdx]
test rax, rax
je 0x18000e132
cmp rax, rcx
jb 0x18000e161
cmp rax, r9
jae 0x18000e161
add r8d, 1
add rdx, 0x60
cmp r8d, 0x2a9
jb 0x18000e120
mov rax, qword [rcx + 8]
xor edx, edx
mov r8d, 0x8000
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov qword [0x1800705e8], r13
jmp 0x18000e165
lea rbx, [rcx + 8]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x18000e100
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, qword [0x1800705e0]
test rbx, rbx
mov rdi, rax
je 0x18000e1b9
lea r9, [rsp + 0x510]
mov edx, 0x10000
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 0x10000
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x18000e182
mov rdi, qword [0x180070608]
test rdi, rdi
je 0x18000e1e2
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rdi]
mov rcx, rdi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void____ptr64_
test rbx, rbx
mov rdi, rbx
jne 0x18000e1c5
mov rdi, qword [rsp + 0x500]
mov rbx, qword [rsp + 0x518]
mov eax, dword [0x1800705fc]
mov qword [0x180070608], r13
mov dword [0x1800705f8], r13d
mov r13, qword [rsp + 0x4f0]
add rsp, 0x508
ret