Function at 0x1400051e0
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x520
mov rax, qword [0x14004f0c8]
xor rax, rsp
mov qword [rsp + 0x510], rax
mov ebp, r8d
mov rbx, rdx
mov rdi, rcx
call fcn.140005b20
mov esi, eax
test eax, eax
jns 0x140005238
mov ecx, 2
call fcn.1400147c8
mov rcx, rax
lea rdx, str.failed_rebase_address_ret___d__n
mov r8d, esi
call fcn.140006010
mov eax, esi
jmp 0x14000542d
mov rdx, qword [rdi + 0x58]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx]
mov r9d, 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rdx, qword [rdi + 0x58]
lea r8, [0x14003ab6c]
mov rcx, qword [rbx]
mov r9d, 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rdi + 0x58]
mov r8d, 2
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x20
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rsi, qword [rbx + 8]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x4d0
call fcn.14000f4f0
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x70], 0x100001
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140005404
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x20
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rax, qword [rdi + 0x58]
cmp qword [rsp + 0x138], rax
jne 0x1400052ae
cmp qword [rdi + 0x60], 0
jne 0x14000531b
call fcn.140005de0
mov rdx, rbx
mov rcx, rdi
call fcn.140005450
mov esi, eax
test eax, eax
jns 0x14000534f
mov ecx, 2
call fcn.1400147c8
mov rcx, rax
lea rdx, str.failed_inject_DLL_ret___d__n
mov r8d, esi
call fcn.140006010
mov eax, esi
jmp 0x14000542d
mov rcx, qword [rdi + 0x38]
mov edx, 0x7530
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rsi, str.success_wait_signal__n
test eax, eax
je 0x140005370
lea rsi, str.failed_wait_signal_timeout__n
mov ecx, 2
call fcn.1400147c8
mov rcx, rax
mov rdx, rsi
call fcn.140006010
cmp qword [rdi + 0x60], 0
jne 0x140005391
call fcn.140005de0
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x1400053a0
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x1400053af
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x1400053be
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x58]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx]
mov r9d, 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rdi + 0x58]
mov r8d, 2
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test ebp, ebp
jne 0x140005400
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
jmp 0x14000542d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.1400147c8
mov r8d, ebx
lea rdx, str.Failed_GetThreadContext_:__u_n
mov rcx, rax
call fcn.140006010
mov eax, 0xffffd8e8
mov rcx, qword [rsp + 0x510]
xor rcx, rsp
call fcn.14000d0e0
mov rbx, qword [rsp + 0x550]
add rsp, 0x520
pop rdi
pop rsi
pop rbp
ret