Function at 0x140041bc0
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rsp + 0x118]
mov rax, qword [0x14019ac40]
xor rax, rsp
mov qword [rsp + 0xa8], rax
imul eax, r8d, 0x3e8
test r9b, r9b
mov edx, 0xffffffff
cmove edx, eax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x50], xmm0
mov r12d, dword [rdi + 0x10]
mov r15d, dword [rdi + 0x14]
test rbx, rbx
je 0x140041c25
cmp byte [rbx + 0x18], 0
je 0x140041c25
mov byte [rbx + 0x18], 0
mov r14, qword [rsp + 0x110]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140041c76
test ebp, ebp
je 0x140041e3e
mov rcx, qword [rdi + 8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140041e55
mov rcx, qword [rdi + 8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140041d1d
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x140041d1d
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x60]
mov r8d, 0x48
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x140041d1d
imul rax, qword [rsp + 0x30], 0x64
movabs rbp, 0x20c49ba5e353f7cf
imul rbp
mov rcx, rdx
mov rax, rdx
shr rax, 0x3f
sar rcx, 7
add rcx, rax
imul rax, qword [rsp + 0x38], 0x64
imul rbp
mov rax, rdx
shr rax, 0x3f
sar rdx, 7
add rdx, rax
mov rax, qword [rsp + 0xa0]
shr rax, 0xa
add rdx, rcx
cmp byte [rbx + 0x18], 0
mov qword [rbx], rdx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rax
jne 0x140041d1d
mov byte [rbx + 0x18], 1
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 6
je 0x140041d45
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140041d80
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140041e09
mov ecx, eax
and ecx, 0xbfff0000
mov edx, eax
and edx, 0x7fffffff
test al, al
mov r12d, 1
cmovne r12d, edx
cmp ecx, 0x80000000
cmove r12d, eax
jmp 0x140041e09
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12d, 0xfffffffe
test r14, r14
je 0x140041e09
movaps xmm0, xmmword [0x14016c7a0]
movups xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea r9, str.Failed_getting_status_for_program
lea rdi, [rsp + 0x60]
mov edx, 0x21
mov rcx, rdi
call fcn.1400058f0
mov rcx, r14
mov rdx, rdi
call fcn.1400428e0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140041e09
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140041e04
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x140041eea
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.14016a23c
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov dword [rsi + 0x10], r12d
mov dword [rsi + 0x14], r15d
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14016a260
mov rax, rsi
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov dword [rsi], 0
mov qword [rsi + 8], 0
mov dword [rsi + 0x10], 0
jmp 0x140041e19
test r14, r14
je 0x140041ecc
movaps xmm0, xmmword [0x14016c7a0]
movups xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
lea r9, str.Failed_to_terminate_timed_out_program
lea rbx, [rsp + 0x60]
mov edx, 0x25
mov rcx, rbx
call fcn.1400058f0
mov rcx, r14
mov rdx, rbx
call fcn.1400428e0
mov rax, qword [rsp + 0x78]
cmp rax, 0x10
jb 0x140041ecc
mov rcx, qword [rsp + 0x60]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140041ec7
mov rbp, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbp
cmp rcx, 0x20
jae 0x140041eea
add rax, 0x28
mov rdx, rax
mov rcx, rbp
call fcn.14016a23c
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movaps xmm0, xmmword [rsp + 0x50]
movups xmmword [rsi], xmm0
mov dword [rsi + 0x10], 0xfffffffe
jmp 0x140041e15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3