Function at 0x14022c7a0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
mov rax, qword [0x144db4000]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
mov r14, rdx
mov qword [rsp + 0x40], rdx
movsxd r13, ecx
xor esi, esi
lea ecx, [rsi + 1]
lea rdx, [rbp + 0x20]
call sub.WS2_32.dll_WSAStartup
mov ebx, eax
test eax, eax
je 0x14022c81b
lea rdx, str.WSAStartup_failed_with_error:
lea rcx, [0x144de8730]
call fcn.1400253a0
mov rcx, rax
mov edx, ebx
call fcn.1400042b0
mov rcx, rax
call fcn.14002a680
xor eax, eax
jmp 0x14022cc23
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ecx, 0x80000041
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea rdx, [0x144de4a45]
lea rcx, [0x144de4a44]
call fcn.140243dc0
lea rbx, [r14 + r13*8]
mov rdx, qword [rbx - 8]
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x68], sil
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], sil
jne 0x14022c870
lea rcx, [rbp - 0x68]
call fcn.140002170
nop
lea rcx, [rsp + 0x28]
call fcn.140037ec0
nop
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x48], 0
mov ecx, 0x20
call fcn.1403940a0
mov qword [rbp - 0x38], 0x18
mov qword [rbp - 0x30], 0x1f
movups xmm0, xmmword [str.__watchdog_child_process]
movups xmmword [rax], xmm0
movsd xmm1, qword [0x140512640]
movsd qword [rax + 0x10], xmm1
mov byte [rax + 0x18], 0
mov qword [rbp - 0x48], rax
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x68]
call fcn.14024b220
movzx r15d, al
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x14022c92a
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14022c925
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14022cc53
call fcn.1403940dc
test r15b, r15b
je 0x14022c96a
mov qword [rsp + 0x38], rsi
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rcx, qword [rbp - 0x68]
add rcx, 0x18
mov r8d, 0xa
lea rdx, [rsp + 0x38]
call fcn.1403a0370
mov ecx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + 0x444], ecx
dec r13d
mov qword [rbx - 8], rsi
movzx r8d, r15b
mov rdx, r14
mov ecx, r13d
call fcn.140224e20
test al, al
jne 0x14022c987
mov rbx, qword [rsp + 0x30]
jmp 0x14022cbb6
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r12, rax
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
lea rcx, [rsp + 0x60]
call fcn.140037ec0
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x4b1]
mov byte [rsp + 0x20], al
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14022c9ee
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14022c9ee
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14022c9ee
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov ecx, dword [rsp + 0x24]
mov eax, ecx
or eax, 0xc0
mov r14d, ecx
and r14d, 0xffffffbf
bts r14d, 7
cmp byte [rsp + 0x20], 0
cmovne r14d, eax
cmp r14d, ecx
je 0x14022ca1f
mov edx, r14d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, dword [0x144de8ba0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x144de4a18], ecx
jg 0x14022cc59
mov rbx, qword [0x144de4a10]
test rbx, rbx
je 0x14022ca5d
lock inc dword [rbx + 8]
mov rbx, qword [0x144de4a10]
mov rcx, qword [0x144de4a08]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rbx
mov rax, qword [rsp + 0x28]
movzx r8d, byte [rax + 0x3e0]
movzx edx, r15b
call fcn.1401e7ee0
nop
test rbx, rbx
je 0x14022cab3
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14022cab3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14022cab3
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test r15b, r15b
jne 0x14022cadf
mov rax, qword [rsp + 0x28]
cmp byte [rax + 0x428], r15b
je 0x14022cadf
mov rdx, qword [rsp + 0x40]
mov ecx, r13d
call fcn.14025a2e0
mov esi, eax
mov rbx, qword [rsp + 0x30]
jmp 0x14022cb98
lea rcx, [rsp + 0x40]
call fcn.14007e5d0
mov rcx, qword [rax]
mov rax, qword [rsp + 0x28]
mov edx, dword [rax]
call fcn.1401d08c0
nop
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14022cb2c
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14022cb2c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14022cb2c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov byte [rbp - 0x80], r15b
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14022cb43
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x30]
lea rax, [0x140512678]
mov qword [rbp - 0x20], rax
mov byte [rbp - 0x18], r15b
mov rax, qword [rsp + 0x28]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rbx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
lea rax, [rbp - 0x20]
mov qword [rbp + 0x18], rax
lea rdx, [rbp - 0x20]
movzx ecx, r15b
call fcn.1401cd5e0
mov esi, eax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14022cb98
mov rax, qword [rcx]
lea rdx, [rbp - 0x20]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov edx, dword [rsp + 0x24]
cmp r14d, edx
je 0x14022cbaa
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, 0x80000000
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
nop
test rbx, rbx
je 0x14022cbea
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14022cbea
mov rbx, qword [rsp + 0x30]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14022cbea
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x14022cc21
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14022cc1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14022cc4d
call fcn.1403940dc
mov eax, esi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1403941f0
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14039b04c
nop
call fcn.14039b04c
nop
lea rcx, [0x144de4a18]
call fcn.140394614
cmp dword [0x144de4a18], 0xffffffff
jne 0x14022ca46
mov ecx, 2
call fcn.1403940a0
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14022cc93
mov rcx, rax
call fcn.1401e7ed0
mov rbx, rax
jmp 0x14022cc96
mov rbx, rsi
xorps xmm0, xmm0
movdqu xmmword [0x144de4a08], xmm0
mov qword [rsp + 0x50], rbx
mov ecx, 0x18
call fcn.1403940a0
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14022ccde
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, [0x14050f480]
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
jmp 0x14022cce1
mov rax, rsi
mov qword [0x144de4a08], rbx
mov qword [0x144de4a10], rax
mov edx, 2
xor ecx, ecx
call fcn.1403940dc
lea rcx, [0x1403d8e70]
call fcn.140394474
nop
lea rcx, [0x144de4a18]
call fcn.1403945b4
jmp 0x14022ca46