Function at 0x14006d740
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x1400ee040]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x68], rdx
xor r12d, r12d
mov byte [rbp + 0x20], r12b
mov ecx, 0x202
lea rdx, [rbp + 0x130]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14006dba7
movzx eax, word [rbp + 0x130]
cmp al, 2
jne 0x14006db7e
shr ax, 8
cmp al, 2
jne 0x14006db7e
mov word [rbp + 0x20], 1
cmp qword [rsi + 0x18], 0xf
jbe 0x14006d7d7
mov r8, qword [rsi]
mov rdx, r8
add r8, qword [rsi + 0x10]
jmp 0x14006d7e1
mov rdx, rsi
mov r8, qword [rsi + 0x10]
add r8, rsi
lea rcx, [rbp + 0x28]
call fcn.1400ac180
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
movups xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x1400d9d70]
movdqu xmmword [rbp - 0x60], xmm1
mov byte [rbp - 0x70], 0
movups xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_closesocket]
movdqu xmmword [rbp - 0x80], xmm1
mov eax, dword [0x1400d4d1c]
mov word [rsp + 0x70], ax
movzx eax, byte [0x1400d4d1e]
mov byte [rsp + 0x72], al
mov byte [rsp + 0x73], 0
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call fcn.1400ac0b0
nop
mov qword [rsp + 0x28], 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9, rax
lea r8, [rsp + 0x70]
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x20]
call fcn.140067250
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14006d8b7
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006d8b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006d8b1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b7700
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14006d8f6
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006d8f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006d8f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b7700
movdqa xmm0, xmmword [0x1400d9d70]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x14006d946
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006d941
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006d941
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400b7700
movdqa xmm0, xmmword [0x1400d9d70]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rdi, qword [rsp + 0x30]
test rdi, rdi
je 0x14006d9d0
mov r14, qword [rsp + 0x38]
cmp rdi, r14
je 0x14006d986
nop dword [rax + rax]
mov rcx, rdi
call fcn.1400671a0
add rdi, 0x40
cmp rdi, r14
jne 0x14006d970
mov rdi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rdi
and rdx, 0xffffffffffffffc0
mov rax, rdi
cmp rdx, 0x1000
jb 0x14006d9ba
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006d9ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.1400b7700
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov r15, qword [rbp + 8]
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], send
mov rdi, qword [rbp]
cmp rdi, r15
jne 0x14006d9f7
mov byte [rbx], 0
jmp 0x14006dad8
mov rax, r15
sub rax, rdi
movabs r14, 0x7fffffffffffffff
cmp rax, r14
ja 0x14006db72
cmp rax, 0xf
jbe 0x14006da93
or rax, 0xf
cmp rax, r14
jbe 0x14006da4b
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1400b7ae4
mov rcx, rax
test rax, rax
je 0x14006da76
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14006da8c
mov r14, rax
mov ecx, socket
cmp rax, rcx
cmovb r14, rcx
lea rcx, [r14 + 1]
cmp rcx, 0x1000
jb 0x14006da7d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14006db78
jmp 0x14006da2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x14006da89
call fcn.1400b7ae4
jmp 0x14006da8c
mov rax, r12
mov qword [rbx], rax
mov qword [rbx + 0x18], r14
cmp rdi, r15
je 0x14006dac3
nop dword [rax + rax]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14006daad
mov rdx, qword [rbx]
movzx ecx, byte [rdi]
mov rax, qword [rbx + 0x10]
mov byte [rdx + rax], cl
inc qword [rbx + 0x10]
inc rdi
cmp rdi, r15
jne 0x14006daa0
mov rcx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14006dad0
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
mov byte [rcx + rax], 0
lea rcx, [rbp - 0x40]
call fcn.140068850
nop
lea rcx, [rbp + 0x28]
call fcn.1400685a0
cmp byte [rbp + 0x20], 0
je 0x14006daf8
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14006db2e
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14006db29
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006db6b
mov rcx, r8
call fcn.1400b7700
mov qword [rsi + 0x10], r12
mov qword [rsi + 0x18], send
mov byte [rsi], 0
mov rax, rbx
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1400b7380
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400643c0
nop
call fcn.140064230
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Invalid_WinSock_version
lea rcx, [rsp + 0x50]
call fcn.1400643e0
lea rdx, [0x1400ea1c0]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r9, str.WSAStartup_failed
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.1400647a0
lea rdx, [0x1400ea180]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3