Function at 0x1400a3010
Capabilities:
Create thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x1403d66b0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 8], rcx
cmp qword [rsp + 0x30], 0
jne 0x1400a30f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x1400a30b0
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [rax]
mov qword [rsp + 0x68], rax
jmp 0x1400a30b9
mov qword [rsp + 0x68], 0
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x88]
call fcn.140003df0
call fcn.1400a21e0
mov r8, rax
mov edx, dword [rsp + 0x38]
lea rcx, [rsp + 0x88]
call fcn.1400a0530
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x88]
call fcn.1400a1c30
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x60]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x10], 0
jne 0x1400a31c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400a317f
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x50]
call qword [rax]
mov qword [rsp + 0x70], rax
jmp 0x1400a3188
mov qword [rsp + 0x70], 0
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x98]
call fcn.140003df0
call fcn.1400a21e0
mov r8, rax
mov edx, dword [rsp + 0x3c]
lea rcx, [rsp + 0x98]
call fcn.1400a0530
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x98]
call fcn.1400a1c30
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0xd8]
lea r8, [0x1400a3320]
mov edx, dword [rsp + 0xe0]
xor ecx, ecx
call fcn.1402a03d4
mov rcx, qword [rsp + 0xd0]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 8], 0
jne 0x1400a32d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x1400a325d
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [rax]
mov qword [rsp + 0x78], rax
jmp 0x1400a3266
mov qword [rsp + 0x78], 0
cmp qword [rsp + 0x30], 0
je 0x1400a3279
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x10], 0
je 0x1400a329a
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0xa8]
call fcn.140003df0
call fcn.1400a21e0
mov r8, rax
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0xa8]
call fcn.1400a0530
lea rdx, str.thread
lea rcx, [rsp + 0xa8]
call fcn.1400a1c30
cmp qword [rsp + 0x30], 0
je 0x1400a32fc
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14027f960
add rsp, 0xc8
ret