Function at 0x180013dfc
Capabilities:
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 0x10], rdx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
and dword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r13, rdx
mov rsi, rcx
xor r12d, r12d
call fcn.180012f68
mov r15, qword [rsp + 0x38]
test al, al
je 0x1800143f4
mov rdx, r13
mov rcx, rsi
call fcn.180012eec
lea r8, [rbp - 0x70]
mov rcx, rsi
mov edx, eax
call fcn.180014850
mov edx, eax
mov dword [rsp + 0x58], eax
cmp eax, 1
jb 0x1800143f4
xor edi, edi
lea ebx, [r12 + 0x1a]
lea rcx, [rbp - 0x70]
and dword [rsp + 0x34], edi
xor eax, eax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x38], rcx
cmp eax, edx
jae 0x1800143f8
mov ecx, dword [rcx]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
je 0x1800142e4
test rdi, rdi
je 0x180013eca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
xor edx, edx
mov r8d, dword [rax]
cmp dword [rsi + 8], edx
je 0x180013f6e
or ebx, 0x40
mov ecx, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_OpenThread]
lea rcx, str.kernel32.dll
mov rdi, rax
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.Wow64SuspendThread
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Wow64SetThreadContext
mov rcx, rbx
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.Wow64GetThreadContext
mov rcx, rbx
mov r14, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [rbp - 0x80], rax
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1800143df
test r14, r14
je 0x1800143df
test rcx, rcx
je 0x1800143df
mov rcx, rdi
call rax
jmp 0x180013f8b
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rcx, rax
mov rdi, rax
mov qword [rbp - 0x78], rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r14, qword [rsp + 0x70]
mov ebx, eax
test rdi, rdi
jne 0x180013fb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x471
lea rdx, [0x18003a408]
mov r8d, eax
call fcn.180030818
jmp 0x1800142e0
test ebx, ebx
je 0x180013fe5
cmp ebx, 0xffffffff
je 0x180013fc3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.SuspendThread_Error:__d___d_n
mov r8d, ebx
mov r9d, eax
mov ecx, 0x47a
call fcn.180030818
jmp 0x1800142e0
mov rcx, qword [rsi + 0x18]
xor ebx, ebx
lea edx, [rbx + 8]
cmp dword [rsi + 8], ebx
je 0x180014018
mov r8d, 0x2cc
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rdi
mov rdx, rax
mov r12, rax
mov qword [rsp + 0x78], rax
mov dword [rax], 0x10001f
call qword [rbp - 0x80]
jmp 0x18001403f
mov r8d, 0x4d0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rdi
mov rdx, rax
mov r12, rax
mov qword [rsp + 0x78], rax
mov dword [rax + 0x30], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x180014053
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x492
jmp 0x180013f9d
mov qword [rsp + 0x50], rbx
cmp dword [rsi + 8], ebx
je 0x180014074
mov eax, dword [r12 + 0xb8]
mov qword [rsp + 0x50], rax
mov dword [r12 + 0xb8], r15d
jmp 0x180014089
mov rax, qword [r12 + 0xf8]
mov qword [rsp + 0x50], rax
mov qword [r12 + 0xf8], r15
mov qword [rsp + 0x60], rbx
cmp dword [rsi + 8], ebx
je 0x18001409e
mov ebx, 4
lea rdx, [r15 + 0x18]
jmp 0x1800140a7
mov ebx, 8
lea rdx, [r15 + 0x35]
lea rax, [rsp + 0x60]
lea r8, [rsp + 0x50]
mov r9, rbx
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [rsi]
test eax, eax
je 0x1800143c8
cmp qword [rsp + 0x60], rbx
jne 0x1800143c8
cmp dword [rsi + 8], 0
mov rdx, r12
mov rcx, rdi
je 0x18001410c
call r14
test eax, eax
jne 0x180014123
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4b2
lea rdx, [0x18003a408]
mov r8d, eax
call fcn.180030818
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1800142e0
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x180014123
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4bb
jmp 0x1800140ef
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x180014141
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4c3
jmp 0x180013f9d
mov rdi, qword [rsp + 0x38]
lea rdx, str.Code0x_p_in_TID__d_n
mov r8, r15
mov r9d, dword [rdi]
mov ecx, 0x4c6
call fcn.180030818
and dword [rsp + 0x48], 0
mov r12, qword [rbp + 0x1c8]
xor r13d, r13d
mov ebx, 0x96
xor r14d, r14d
test r13d, r13d
jne 0x18001424b
mov ecx, dword [rdi]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PostThreadMessageW]
lea ecx, [r13 + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [r15 + 0x4e]
cmp dword [rsi + 8], r14d
jne 0x1800141a8
lea rdx, [r15 + 0x92]
and qword [rsp + 0x20], r14
lea r8, [rsp + 0x34]
mov r9d, 4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x180014243
mov r8d, dword [rsp + 0x34]
test r8d, r8d
je 0x180014243
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenThread]
test rax, rax
je 0x18001421e
mov edx, 0x2710
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x18001423d
cmp eax, 0x102
je 0x1800141ff
cmp eax, 0xffffffff
jne 0x180014243
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x18003a408]
mov ecx, 0x4ed
mov r8d, eax
call fcn.180030818
xor r13d, r13d
jmp 0x180014243
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, dword [rsp + 0x34]
lea rdx, str.___ERROR__d_ACCESSING_TID__d_n
mov r8d, eax
mov ecx, 0x4fa
call fcn.180030818
mov r13d, 1
dec ebx
jne 0x180014174
mov rdi, qword [rbp - 0x78]
mov r12, qword [rsp + 0x78]
cmp byte [rsi + 0x24], r14b
je 0x1800142c1
mov ebx, 0x96
test ebx, ebx
je 0x1800142c7
cmp dword [rsi + 8], 0
lea rdx, [r15 + 0x52]
jne 0x180014274
lea rdx, [r15 + 0x96]
mov rcx, qword [rbp + 0x1c8]
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x48]
mov r9d, 4
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800142ad
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1800142ad
mov rcx, qword [rbp + 0x1e0]
mov r14d, 1
mov dword [rcx], eax
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
dec ebx
test r14d, r14d
je 0x18001425f
jmp 0x1800142c7
mov r14d, 1
test r14d, r14d
je 0x180014310
test r13d, r13d
je 0x180014310
mov dword [rsp + 0x40], 1
mov r13, qword [rbp + 0x1c8]
mov ebx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x38]
inc eax
add rcx, 4
cmp dword [rsp + 0x40], 0
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x38], rcx
jne 0x1800143f8
mov edx, dword [rsp + 0x58]
jmp 0x180013e9c
cmp dword [rsi + 8], 0
mov rcx, rdi
je 0x18001431f
call qword [rsp + 0x68]
jmp 0x180014325
call qword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
jne 0x1800142d9
cmp dword [rsi + 8], eax
je 0x18001433c
mov eax, dword [rsp + 0x50]
mov dword [r12 + 0xb8], eax
jmp 0x180014349
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0xf8], rax
cmp dword [rsi + 8], 0
mov rdx, r12
mov rcx, rdi
je 0x18001436a
call qword [rsp + 0x70]
test eax, eax
jne 0x180014397
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x549
jmp 0x18001437f
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x180014397
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x551
lea rdx, [0x18003a408]
mov r8d, eax
call fcn.180030818
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x1800142d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x18003a408]
mov ecx, 0x556
mov r8d, eax
call fcn.180030818
jmp 0x1800142d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.___NOT_PREPARED__d_n
mov ecx, 0x4a9
jmp 0x180013fa4
lea rdx, str.___OH_WOW__n
mov ecx, 0x462
call fcn.180030818
xor al, al
jmp 0x180014465
mov rdi, qword [rbp - 0x80]
mov r8d, dword [rsp + 0x34]
lea rdx, str.Started_TID__d_n
mov ecx, 0x55c
call fcn.180030818
test r15, r15
je 0x180014428
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rdi, rdi
je 0x180014436
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12, r12
je 0x18001444c
mov rcx, qword [rsi + 0x18]
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18001445d
lea rdx, str._HeapFree__NULL_n
mov ecx, 0x568
call fcn.180030818
cmp dword [rsp + 0x40], 0
setne al
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret