Function at 0x1400056a0
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.140005e90
mov ebx, eax
test eax, eax
jns 0x1400056f8
mov ecx, 2
call fcn.140029d80
mov rcx, rax
lea rdx, str.failed_rebase_address_ret___d__n
mov r8d, ebx
call fcn.140006200
mov eax, ebx
jmp 0x1400058ef
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, [0x14003cce4]
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 0x1400058c6
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 0x14000576e
cmp qword [rsi + 0x60], 0
jne 0x1400057db
call fcn.140005fd0
mov rdx, rdi
mov rcx, rsi
call fcn.140005920
mov ebx, eax
test eax, eax
jns 0x14000580f
mov ecx, 2
call fcn.140029d80
mov rcx, rax
lea rdx, str.failed_inject_DLL_ret___d__n
mov r8d, ebx
call fcn.140006200
mov eax, ebx
jmp 0x1400058ef
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.140029d80
mov rcx, rax
mov rdx, rbx
call fcn.140006200
cmp qword [rsi + 0x60], 0
jne 0x140005853
call fcn.140005fd0
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x140005862
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rsi + 0x40]
test rcx, rcx
je 0x140005871
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x140005880
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 0x1400058c2
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
jmp 0x1400058ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140029d80
mov r8d, ebx
lea rdx, str.Failed_GetThreadContext_:__u_n
mov rcx, rax
call fcn.140006200
mov eax, 0xffffd8e8
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.140025cd0
mov rbx, qword [rsp + 0x550]
add rsp, 0x520
pop rdi
pop rsi
pop rbp
ret