Function at 0x140010450
Capabilities:
Create thread

Disassembly:
push rbp
sub rsp, 0xd0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x68], rdi
mov rdi, rcx
xor ecx, ecx
mov qword [rbp + 0x80], r15
xor r9d, r9d
mov qword [rbp + 0x88], r14
mov r14, rdx
mov qword [rbp + 0x70], rsi
mov edx, 1
mov qword [rbp + 0x78], rbx
mov ebx, r8d
xor r8d, r8d
mov qword [rbp + 0x60], 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rsi, rax
mov qword [r14 + 8], rsi
test rsi, rsi
jne 0x1400104cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [r14]
mov rcx, r14
mov edx, 1
call qword [rax]
call fcn.1400cc560
test r15d, r15d
jne 0x140010568
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi + 0x10], rax
mov qword [r14 + 0x10], rax
test rax, rax
je 0x1400105bc
mov r11, rsp
xor ecx, ecx
mov edx, ebx
lea r8, [0x140010a60]
mov r9, r14
xor eax, eax
mov dword [rbp + 0x90], eax
lea r10, [rbp + 0x90]
mov dword [r11 + 0x20], eax
mov qword [r11 + 0x28], r10
call fcn.140116598
mov qword [rdi + 8], rax
test rax, rax
je 0x140010634
test rsi, rsi
je 0x140010545
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbp + 0x78]
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov r14, qword [rbp + 0x88]
mov r15, qword [rbp + 0x80]
lea rsp, [rbp + 0xa0]
pop rbp
ret
mov qword [rbp + 0x50], rax
lea rcx, [rbp]
lea rax, str.thread.entry_event
lea rdx, [rbp + 0x58]
mov dword [rbp + 0x48], r15d
mov qword [rbp + 0x58], rax
call fcn.140114a10
nop
lea rcx, [rbp]
vmovups xmm0, xmmword [rbp + 0x48]
vmovups xmmword [rbp + 0x18], xmm0
lea rax, [0x1401e34d0]
mov qword [rbp], rax
mov qword [rbp + 0x40], setsockopt
mov qword [rbp + 0x38], 0
mov byte [rbp + 0x28], 0
call fcn.1400c2a60
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, eax
mov rax, qword [r14]
mov rcx, r14
mov edx, 1
call qword [rax]
call fcn.1400cc560
test r15d, r15d
je 0x1400104ef
mov qword [rbp + 0x50], rax
lea rcx, [rbp]
lea rax, str.thread.exit_event
lea rdx, [rbp + 0x58]
mov dword [rbp + 0x48], r15d
mov qword [rbp + 0x58], rax
call fcn.140114a10
nop
lea rcx, [rbp]
vmovups xmm0, xmmword [rbp + 0x48]
vmovups xmmword [rbp + 0x18], xmm0
lea rax, [0x1401e34d0]
mov qword [rbp], rax
mov qword [rbp + 0x40], setsockopt
mov qword [rbp + 0x38], 0
mov byte [rbp + 0x28], 0
call fcn.1400c2a60
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [r14]
mov rcx, r14
mov edx, 1
call qword [rax]
test rsi, rsi
je 0x140010657
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140010666
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400cc560
test ebx, ebx
je 0x140010529
mov qword [rbp + 0x50], rax
lea rcx, [rbp]
lea rax, str.thread
lea rdx, [rbp + 0x58]
mov dword [rbp + 0x48], ebx
mov qword [rbp + 0x58], rax
call fcn.140114a10
nop
lea rcx, [rbp]
vmovups xmm0, xmmword [rbp + 0x48]
vmovups xmmword [rbp + 0x18], xmm0
lea rax, [0x1401e34d0]
mov qword [rbp], rax
mov qword [rbp + 0x40], setsockopt
mov qword [rbp + 0x38], 0
mov byte [rbp + 0x28], 0
call fcn.1400c2a60
nop
push rbp
sub rsp, 0xd0
lea rbp, [rdx + 0x30]
lea rcx, [rbp]
call fcn.1400c9240
add rsp, 0xd0
pop rbp
ret