Function at 0x140005570
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x520
mov rax, qword [0x14004b140]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
call fcn.140005d60
mov ebx, eax
test eax, eax
jns 0x1400055c8
mov ecx, 2
call fcn.140029cd0
mov rcx, rax
lea rdx, str.failed_rebase_address_ret___d__n
mov r8d, ebx
call fcn.1400060d0
mov eax, ebx
jmp 0x1400057bf
mov rdx, qword [rsi + 0x58]
lea r8, [rsp + 0x30]
mov rcx, qword [rdi]
mov r9d, 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rsi + 0x58]
lea r8, [0x14003ccc4]
mov rcx, qword [rdi]
mov r9d, 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rsi + 0x58]
mov r8d, 2
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x20
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rbx, qword [rdi + 8]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x4d0
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x70], 0x100001
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140005796
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x20
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rax, qword [rsi + 0x58]
cmp qword [rsp + 0x138], rax
jne 0x14000563e
cmp qword [rsi + 0x60], 0
jne 0x1400056ab
call fcn.140005ea0
mov rdx, rdi
mov rcx, rsi
call fcn.1400057f0
mov ebx, eax
test eax, eax
jns 0x1400056df
mov ecx, 2
call fcn.140029cd0
mov rcx, rax
lea rdx, str.failed_inject_DLL_ret___d__n
mov r8d, ebx
call fcn.1400060d0
mov eax, ebx
jmp 0x1400057bf
mov rcx, qword [rsi + 0x38]
mov edx, 0x7530
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.failed_wait_signal_timeout__n
test eax, eax
lea rbx, str.success_wait_signal__n
cmovne rbx, rcx
mov ecx, 2
call fcn.140029cd0
mov rcx, rax
mov rdx, rbx
call fcn.1400060d0
cmp qword [rsi + 0x60], 0
jne 0x140005723
call fcn.140005ea0
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x140005732
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x140005741
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140005750
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rsi + 0x58]
lea r8, [rsp + 0x30]
mov rcx, qword [rdi]
mov r9d, 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rsi + 0x58]
mov r8d, 2
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test ebp, ebp
jne 0x140005792
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
jmp 0x1400057bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140029cd0
mov r8d, ebx
lea rdx, str.Failed_GetThreadContext_:__u_n
mov rcx, rax
call fcn.1400060d0
mov eax, 0xffffd8e8
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.140025c20
mov rbx, qword [rsp + 0x550]
add rsp, 0x520
pop rdi
pop rsi
pop rbp
ret