Function at 0x180029820
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rsp + 0x108], rbx
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
cmp qword [rcx + 0x38], 0
jne 0x180029863
xor al, al
jmp 0x180029aff
xorps xmm0, xmm0
movdqu xmmword [rbp - 9], xmm0
movdqa xmm1, xmmword [0x1803e7600]
movdqu xmmword [rbp - 9], xmm1
xor r15d, r15d
mov word [rbp - 0x19], r15w
mov rax, rsi
cmp qword [rcx + 0x18], 8
jb 0x18002988d
mov rax, qword [rcx]
cmp qword [r8 + 0x18], 8
jb 0x180029897
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1800298a1
mov rdx, qword [rdx]
mov qword [rsp + 0x30], rax
lea rax, str.8ec8410c443d08d15a02f338afdfe4d1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x19
mov r9, r8
mov r8, rdx
lea rdx, str.__s____s____d____s____s_
lea rcx, [rbp - 0x19]
call fcn.180154b60
lea rbx, [rsi + 0x28]
mov qword [rbp - 0x41], rbx
xor cl, cl
mov byte [rbp - 0x39], cl
test rbx, rbx
je 0x180029909
mov rcx, qword [rbx]
test rcx, rcx
je 0x180029906
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180029900
xor cl, cl
jmp 0x180029906
mov byte [rbx + 8], 1
mov cl, 1
mov byte [rbp - 0x39], cl
mov rax, qword [rsi + 0x38]
mov dword [rax], r15d
mov qword [rax + 4], 1
mov dword [rax + 0xc], r15d
test rbx, rbx
je 0x180029937
test cl, cl
je 0x180029937
mov rcx, qword [rbx]
test rcx, rcx
je 0x180029933
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbx + 8], 0
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x49], r15
lea rdx, [rsi + 0x40]
lea rcx, [rbp + 7]
call fcn.18015acc0
nop
lea r9, [rbp - 0x49]
lea rdx, [rbp - 0x19]
mov rcx, rax
call fcn.1801651b0
test al, al
sete dil
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x1800299a6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800299a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800299a1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp + 0x17], xmm0
mov word [rbp + 7], r15w
test dil, dil
jne 0x180029a98
mov r14d, 0x61a8
mov eax, r15d
xchg byte [rsi + 0x60], al
nop dword [rax]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rbp - 0x31], rbx
xor cl, cl
mov byte [rbp - 0x29], cl
test rbx, rbx
je 0x180029a10
mov rcx, qword [rbx]
test rcx, rcx
je 0x180029a0d
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x180029a07
xor cl, cl
jmp 0x180029a0d
mov byte [rbx + 8], 1
mov cl, 1
mov byte [rbp - 0x29], cl
mov rax, qword [rsi + 0x38]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x41], xmm0
test rbx, rbx
je 0x180029a36
test cl, cl
je 0x180029a36
mov rcx, qword [rbx]
test rcx, rcx
je 0x180029a32
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbx + 8], 0
mov qword [rbp - 0x31], r15
sub r14d, 0xc8
cmp dword [rbp - 0x41], 1
sete dil
movzx eax, byte [rsi + 0x60]
test al, al
jne 0x180029a5f
test r14d, r14d
jle 0x180029a5f
test dil, dil
je 0x1800299d0
movzx eax, byte [rsi + 0x60]
mov rbx, qword [rbp - 0x49]
test al, al
je 0x180029ad9
test rbx, rbx
je 0x180029ad9
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rbx
je 0x180029a98
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x180029a98
mov edx, 0x1388
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor dil, dil
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x180029ae9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180029ae4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180029ae4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180029a9b
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp - 0x19], r15w
movzx eax, dil
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret