Function at 0x14022ebc0
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 [0x144dd6080]
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 0x14022ec3b
lea rdx, str.WSAStartup_failed_with_error:
lea rcx, [0x144e0ab70]
call fcn.140026580
mov rcx, rax
mov edx, ebx
call fcn.140004da0
mov rcx, rax
call fcn.14002ba50
xor eax, eax
jmp 0x14022f038
mov ecx, 1
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov ecx, 0x80000041
call qword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
lea rdx, [0x144e06e85]
lea rcx, [0x144e06e84]
call fcn.140245550
lea rbx, [r14 + r13*8]
mov rdx, qword [rbx - 8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x38], xmm1
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rdx + r8], sil
jne 0x14022ec85
lea rcx, [rbp - 0x48]
call fcn.140001680
nop
lea rcx, [rsp + 0x28]
call fcn.140039310
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], reloc.WS2_32.dll_ntohs
mov ecx, 0x20
call fcn.140395a2c
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], 0x18
mov qword [rbp - 0x50], 0x1f
movups xmm0, xmmword [str.__watchdog_child_process]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140515ab0]
movsd qword [rax + 0x10], xmm0
mov byte [rax + 0x18], 0
xor r8d, r8d
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x48]
call fcn.14024cde0
movzx r15d, al
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x14022ed3e
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14022ed39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14022f068
call fcn.140395a68
test r15b, r15b
je 0x14022ed7e
mov qword [rsp + 0x38], rsi
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0xf
cmova rcx, qword [rbp - 0x48]
add rcx, 0x18
mov r8d, 0xa
lea rdx, [rsp + 0x38]
call fcn.1403a42ec
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.1402276f0
test al, al
jne 0x14022ed9b
mov rbx, qword [rsp + 0x30]
jmp 0x14022efcb
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.140039310
mov rcx, qword [rax]
movzx eax, byte [rcx + 0x4b1]
mov byte [rsp + 0x20], al
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14022ee02
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14022ee02
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14022ee02
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 0x14022ee33
mov edx, r14d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, dword [0x144e0ae80]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x144e06e58], ecx
jg 0x14022f06e
mov rbx, qword [0x144e06e50]
test rbx, rbx
je 0x14022ee71
lock inc dword [rbx + 8]
mov rbx, qword [0x144e06e50]
mov rcx, qword [0x144e06e48]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rbx
mov r8, qword [rsp + 0x28]
movzx r8d, byte [r8 + 0x3e0]
movzx edx, r15b
call fcn.1401eaa60
nop
test rbx, rbx
je 0x14022eec7
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14022eec7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14022eec7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
test r15b, r15b
jne 0x14022eef3
mov rax, qword [rsp + 0x28]
cmp byte [rax + 0x428], r15b
je 0x14022eef3
mov rdx, qword [rsp + 0x40]
mov ecx, r13d
call fcn.14025bfc0
mov esi, eax
mov rbx, qword [rsp + 0x30]
jmp 0x14022efad
lea rcx, [rsp + 0x40]
call fcn.14007d2f0
nop
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx]
mov rcx, qword [rax]
call fcn.1401d3610
nop
mov rbx, qword [rsp + 0x48]
test rbx, rbx
je 0x14022ef41
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14022ef41
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x14022ef41
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 0x14022ef58
lock inc dword [rbx + 8]
mov rbx, qword [rsp + 0x30]
lea rax, [0x140515ae8]
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.1401d0340
mov esi, eax
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x14022efad
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 0x14022efbf
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 0x14022efff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14022efff
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 0x14022efff
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0xf
jbe 0x14022f036
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14022f031
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14022f062
call fcn.140395a68
mov eax, esi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140395b80
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.14039cf6c
nop
call fcn.14039cf6c
nop
lea rcx, [0x144e06e58]
call fcn.140395eb4
cmp dword [0x144e06e58], 0xffffffff
jne 0x14022ee5a
mov ecx, 2
call fcn.140395a2c
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14022f0a8
mov rcx, rax
call fcn.1401eaa50
mov rbx, rax
jmp 0x14022f0ab
mov rbx, rsi
xorps xmm0, xmm0
movdqu xmmword [0x144e06e48], xmm0
mov qword [rsp + 0x50], rbx
mov ecx, 0x18
call fcn.140395a2c
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14022f0f3
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rcx, [0x140512858]
mov qword [rax], rcx
mov qword [rax + 0x10], rbx
jmp 0x14022f0f6
mov rax, rsi
mov qword [0x144e06e48], rbx
mov qword [0x144e06e50], rax
mov edx, 2
xor ecx, ecx
call fcn.140395a68
lea rcx, [0x1403dbae0]
call fcn.140395df4
nop
lea rcx, [0x144e06e58]
call fcn.140395e48
jmp 0x14022ee5a