Function at 0x140022490
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0xd8
mov r15, rdx
mov r14, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov ecx, 0xd8
call fcn.1400b9b24
mov qword [rbp + 0x77], rax
test rax, rax
je 0x1400224db
mov rcx, rax
call fcn.140022240
jmp 0x1400224de
mov rax, rdi
mov rdx, rax
mov rcx, r14
call fcn.140024ba0
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x38]
call fcn.140003040
nop
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
test rax, rax
je 0x140022802
cmp byte [rbx + 8], 0
je 0x140022520
cmp byte [rax + 0xb8], 0
jne 0x140022802
cmp byte [rbx + 0x10], 0
jne 0x14002280d
mov byte [rbx + 0x10], 1
mov qword [rbp - 0x71], rdi
lea rax, [rbp - 0x71]
cmp rax, rbx
je 0x140022553
mov rax, qword [rbx]
test rax, rax
je 0x140022553
lock inc dword [rax + 8]
mov rbx, qword [rsp + 0x38]
mov rax, qword [rbx]
mov qword [rbp - 0x71], rax
mov byte [rbp - 0x69], 1
mov dword [rsp + 0x30], 3
mov rcx, qword [r14]
add rcx, 0x10
lea rdx, [rbp - 0x71]
call fcn.140027a00
nop
mov edi, 0xffffffff
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x1400225b6
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400225b1
mov rcx, qword [rbp - 0x71]
mov r8, qword [rcx + 0xc8]
test r8, r8
je 0x1400225a7
mov rax, qword [r8]
mov rdx, rcx
mov rcx, r8
call qword [rax]
jmp 0x1400225b1
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rbx, qword [rsp + 0x38]
mov rax, qword [r14 + 8]
test rax, rax
je 0x1400225c8
lock inc dword [rax + 8]
mov rbx, qword [rsp + 0x38]
mov rax, qword [r14]
mov qword [rbp + 0x77], rax
mov qword [rbp - 0x49], rax
mov rax, qword [r14 + 8]
mov qword [rbp + 0x7f], rax
mov qword [rbp - 0x41], rax
mov rax, qword [r15 + 8]
test rax, rax
je 0x1400225f1
lock inc dword [rax + 8]
mov rbx, qword [rsp + 0x38]
mov r12, qword [r15]
mov qword [rbp - 0x39], r12
mov r13, qword [r15 + 8]
mov qword [rbp - 0x31], r13
mov rsi, qword [rbp - 0x79]
test rsi, rsi
je 0x140022612
lock inc dword [rsi + 8]
mov rbx, qword [rsp + 0x38]
mov qword [rbp - 0x29], rbx
mov rsi, qword [rbp - 0x79]
mov qword [rbp - 0x21], rsi
mov ecx, Ordinal_50
call fcn.1400b9b24
test rax, rax
je 0x140022662
mov rcx, qword [rbp + 0x77]
mov qword [rax], rcx
mov rcx, qword [rbp + 0x7f]
mov qword [rax + 8], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], r13
movdqu xmmword [rbp - 0x39], xmm0
mov qword [rax + 0x20], rbx
mov qword [rax + 0x28], rsi
movdqu xmmword [rbp - 0x29], xmm0
mov rsi, qword [rbp - 0x21]
mov qword [rbp - 0x19], rax
mov dword [rsp + 0x30], 7
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140025310]
xor edx, edx
xor ecx, ecx
call fcn.1400c2ed8
mov qword [rbp - 0x59], rax
test rax, rax
je 0x1400227f0
cmp dword [rbp - 0x51], 0
je 0x140022818
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call fcn.1400b633c
test eax, eax
jne 0x140022823
xorps xmm0, xmm0
movaps xmmword [rbp + 7], xmm0
movdqa xmmword [rbp - 0x59], xmm0
test rsi, rsi
je 0x140022702
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140022702
mov rbx, qword [rbp - 0x21]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140022702
mov rcx, qword [rbp - 0x21]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140022739
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140022739
mov rbx, qword [rbp - 0x31]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140022739
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x140022771
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140022771
mov rbx, qword [rbp - 0x41]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140022771
mov rcx, qword [rbp - 0x41]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rsi, qword [rbp - 0x79]
test rsi, rsi
je 0x1400227a9
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x1400227a9
mov rbx, qword [rbp - 0x79]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400227a9
mov rcx, qword [rbp - 0x79]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rbx, qword [r15 + 8]
test rbx, rbx
je 0x1400227d9
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400227d9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400227d9
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, r14
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov dword [rbp - 0x51], 0
mov ecx, 6
call fcn.1400b6cbc
nop
mov ecx, 4
call fcn.140004010
int3
mov ecx, 2
call fcn.140004010
nop
mov ecx, 1
call fcn.1400b6cbc
int3
mov ecx, eax
call fcn.1400b6c80
int3