Function at 0x2100d3310
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
lea r13, [0x210273880]
lea rbx, [rsp + 0xf0]
mov r12, rcx
mov edi, edx
mov rsi, r9
mov dword [rsp + 0x6c], edx
lea rbp, [rsp + 0x78]
mov dword [rsp + 0x68], r8d
mov qword [rsp + 0xe8], r9
mov qword [rsp + 0x70], rbx
test r9, r9
je 0x2100d35c0
mov qword [rsp + 0x58], rbp
jmp 0x2100d33a1
call sym.WriteProcessMemory
mov r14d, eax
test byte [r13], 1
jne 0x2100d33f4
test r14d, r14d
je 0x2100d3436
cmp qword [rsp + 0x78], rbp
jne 0x2100d344f
add rbx, 0x18
mov qword [rsp + 0x70], rbx
mov rsi, qword [rbx - 8]
test rsi, rsi
je 0x2100d35c0
lea rax, [rbx + 0x10]
mov r15, qword [rbx]
mov qword [rsp + 0x70], rax
mov rax, qword [rbx + 8]
mov rbp, rax
mov qword [rsp + 0x60], rax
sub rbp, r15
cmp r15, rax
jae 0x2100d338b
mov rax, qword [rsp + 0x58]
mov r9, rbp
mov r8, r15
mov rdx, r15
mov qword [rsp + 0x78], 0
mov rcx, r12
mov qword [rsp + 0x20], rax
test dil, dil
jne 0x2100d3368
call sym.ReadProcessMemory
mov r14d, eax
test byte [r13], 1
je 0x2100d3377
mov rax, qword [rsp + 0x60]
mov dword [rsp + 0x40], r14d
mov edx, 0x40
mov rcx, r13
mov qword [rsp + 0x30], r15
lea r9, str._s___hp__p_low__p__high__p__res__d
lea r8, str.bool_child_copy_HANDLE__bool__bool__..._
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rsi
call method.strace.prntf_unsigned_int__char_const__char_const__..._
test r14d, r14d
jne 0x2100d3380
call sym.GetLastError
mov edx, 0x2cd
lea rcx, str._usr_src_MSYS2_packages_msys2_runtime_src_msys2_runtime_winsup_cygwin_fork.cc
mov r8d, eax
call sym.seterrno_from_win_error_char_const__int__unsigned_int_
cmp byte [rsp + 0x68], 0
je 0x2100d3518
test byte [0x210273880], 1
jne 0x2100d34b0
mov edx, 1
mov rcx, r12
call sym.TerminateProcess
test byte [0x210273880], 1
jne 0x2100d3580
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov dword [rax], 0xb
call sym.msys_2.0.dll___errno
mov dword [rax], 0xb
xor eax, eax
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x21024fce8]
movzx edx, byte [rsp + 0x6c]
mov rcx, r13
lea r9, str._s__s_copy_failed___p.._p__done__lu__windows_pid__u___E
lea r8, str.bool_child_copy_HANDLE__bool__bool__..._
mov eax, dword [rax + 0x14]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, str.read
mov rax, qword [rax + rdx*8]
mov edx, 0x40
mov qword [rsp + 0x28], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100d3463
mov rax, qword [0x21024fce8]
movzx edx, byte [rsp + 0x6c]
mov rcx, r13
lea r9, str._s__s_copy_failed___p.._p__done__lu__windows_pid__u___E
lea r8, str.bool_child_copy_HANDLE__bool__bool__..._
mov eax, dword [rax + 0x14]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea rax, str.read
mov rax, qword [rax + rdx*8]
mov edx, 0x8000
mov qword [rsp + 0x28], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100d3463
mov dword [rsp + 0x30], 0xb
mov edx, 0x40
mov rcx, r13
lea rax, str.bool_child_copy_HANDLE__bool__bool__..._
mov dword [rsp + 0x28], 0x2e2
lea r9, [0x210297398]
lea r8, [0x2102973b0]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100d347d
movzx eax, byte [0x210273880]
and eax, 1
jne 0x2100d35d6
mov eax, 1
jmp 0x2100d3497
lea r9, str.done
mov edx, 0x40
mov rcx, r13
mov byte [rsp + 0x58], al
lea r8, str.bool_child_copy_HANDLE__bool__bool__..._
call method.strace.prntf_unsigned_int__char_const__char_const__..._
movzx eax, byte [rsp + 0x58]
jmp 0x2100d3497