Function at 0x140050770
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
xor r15d, r15d
mov dword [rbp + 0x28], r15d
test rdx, rdx
je 0x140050a38
test r8, r8
je 0x140050a38
test r9, r9
je 0x140050a38
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx], rax
test rax, rax
jne 0x140050893
mov ecx, dword [0x140132b68]
mov eax, dword [0x140132b64]
add ecx, eax
je 0x140050850
mov dword [rbp - 0x28], r15d
call fcn.14000c6e0
mov qword [rbp - 0x30], rax
lock inc dword [rbp - 0x28]
mov esi, 1
mov dword [rbp + 0x28], esi
lea rcx, [rbp - 0x30]
call fcn.14000c110
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 4
mov dword [rbp - 0x40], edi
mov dword [rsp + 0x30], eax
lea rax, str.thread_term_event_creation_failed_with_error__ld
mov qword [rsp + 0x28], rax
lea rcx, str.taskbar::startTaskbarThread
mov qword [rsp + 0x20], rcx
lea r9, [0x140000000]
lea r8, [rbp - 0x40]
movsx edx, r15w
mov rcx, rbx
call fcn.14000ef60
jmp 0x140050853
mov esi, dword [rbp + 0x28]
test sil, 1
je 0x140050a38
and esi, 0xfffffffe
mov dword [rbp + 0x28], esi
mov qword [rbp - 0x30], r15
mov eax, 0xffffffff
lock xadd dword [rbp - 0x28], eax
cmp eax, 1
js 0x14005088a
call fcn.14000efb0
mov eax, 0xffffffff
lock xadd dword [rbp - 0x28], eax
cmp eax, 1
jns 0x140050876
lock inc dword [rbp - 0x28]
jmp 0x140050a38
mov ecx, 0x10
call fcn.14005af10
mov r9, rax
mov qword [rbp - 0x38], rax
test rax, rax
je 0x1400508b5
mov rax, qword [rbx]
mov qword [r9], rax
mov qword [r9 + 8], r14
jmp 0x1400508b8
mov r9, r15
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], r15d
lea r8, [0x14004df40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi], rax
mov ecx, dword [0x140132b68]
test rax, rax
mov eax, dword [0x140132b64]
je 0x140050997
add ecx, eax
je 0x140050957
mov dword [rbp - 0x18], r15d
call fcn.14000c6e0
mov qword [rbp - 0x20], rax
lock inc dword [rbp - 0x18]
mov ebx, 2
mov dword [rbp + 0x28], ebx
lea rcx, [rbp - 0x20]
call fcn.14000c110
mov ecx, dword [rdi]
mov rdx, qword [rsi]
mov dword [rbp - 0x3c], 0x20
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdx
lea rcx, str.taskbar_thread_thCC0x_p_tid_ld
mov qword [rsp + 0x28], rcx
lea rcx, str.taskbar::startTaskbarThread
mov qword [rsp + 0x20], rcx
lea r9, [0x140000000]
lea r8, [rbp - 0x3c]
movsx edx, r15w
mov rcx, rax
call fcn.14000ef60
jmp 0x14005095a
mov ebx, dword [rbp + 0x28]
test bl, 2
je 0x140050990
and ebx, 0xfffffffd
mov dword [rbp + 0x28], ebx
mov qword [rbp - 0x20], r15
mov eax, 0xffffffff
lock xadd dword [rbp - 0x18], eax
cmp eax, 1
js 0x14005098c
call fcn.14000efb0
mov eax, 0xffffffff
lock xadd dword [rbp - 0x18], eax
cmp eax, 1
jns 0x140050978
lock inc dword [rbp - 0x18]
mov al, 1
jmp 0x140050a3a
add ecx, eax
je 0x1400509fe
mov dword [rbp - 8], r15d
call fcn.14000c6e0
mov qword [rbp - 0x10], rax
lock inc dword [rbp - 8]
mov edi, 4
mov dword [rbp + 0x28], edi
lea rcx, [rbp - 0x10]
call fcn.14000c110
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x38], edi
mov dword [rsp + 0x30], eax
lea rax, str.taskbar_thread_creation_failed_with_error__ld
mov qword [rsp + 0x28], rax
lea rcx, str.taskbar::startTaskbarThread
mov qword [rsp + 0x20], rcx
lea r9, [0x140000000]
lea r8, [rbp - 0x38]
movsx edx, r15w
mov rcx, rbx
call fcn.14000ef60
jmp 0x140050a01
mov edi, dword [rbp + 0x28]
test dil, 4
je 0x140050a38
and edi, 0xfffffffb
mov dword [rbp + 0x28], edi
mov qword [rbp - 0x10], r15
mov eax, 0xffffffff
lock xadd dword [rbp - 8], eax
cmp eax, 1
js 0x140050a34
call fcn.14000efb0
mov eax, 0xffffffff
lock xadd dword [rbp - 8], eax
cmp eax, 1
jns 0x140050a20
lock inc dword [rbp - 8]
xor al, al
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret