Function at 0x14000d740
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 - 0x150]
sub rsp, 0x250
mov rax, qword [0x1401d5408]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rdi, rdx
mov r12, rcx
mov qword [rsp + 0x60], rcx
xor r14d, r14d
mov byte [rcx], r14b
mov ecx, 0x202
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, eax
test eax, eax
jne 0x14000dbb7
movzx eax, word [rbp - 0x60]
cmp al, 2
jne 0x14000db8e
shr ax, 8
cmp al, 2
jne 0x14000db8e
mov word [r12], 1
xorps xmm0, xmm0
movups xmmword [r12 + 8], xmm0
mov qword [r12 + 0x18], r14
mov qword [r12 + 0x20], reloc.WS2_32.dll_ntohs
mov byte [r12 + 8], dl
lea rsi, [r12 + 0x28]
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rsi], dl
movups xmmword [r12 + 0x48], xmm0
mov qword [r12 + 0x58], r14
mov qword [r12 + 0x60], reloc.WS2_32.dll_ntohs
mov byte [r12 + 0x48], dl
lea rbx, [r12 + 0x68]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dl
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000d827
mov rcx, qword [rdi]
mov qword [rsp + 0x20], 3
lea r9, [0x1401ac85c]
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.14000a310
mov r14, rax
mov r15, 0xffffffffffffffff
cmp rax, r15
je 0x14000d903
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8, rax
cmp qword [rdi + 0x10], rax
cmovb r8, qword [rdi + 0x10]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000d880
mov rdx, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140006cb0
lea rdx, [rsp + 0x30]
lea rcx, [r12 + 8]
call fcn.140021d10
lea rcx, [rsp + 0x30]
call fcn.140007ab0
add r14, 3
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rax, qword [rdi + 0x10]
cmp rax, r14
jb 0x14000db88
sub rax, r14
mov r8, r15
cmp rax, r15
cmovb r8, rax
cmp qword [rdi + 0x18], 0x10
jb 0x14000d8dc
mov rdi, qword [rdi]
lea rdx, [rdi + r14]
lea rcx, [rsp + 0x30]
call fcn.140006cb0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140021d10
lea rcx, [rsp + 0x30]
call fcn.140007ab0
jmp 0x14000d938
mov r8d, 4
lea rdx, str.http
lea rcx, [r12 + 8]
call fcn.140007b10
cmp rbx, rdi
je 0x14000d938
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14000d92d
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rbx
call fcn.140007b10
mov r8, qword [rbx + 0x10]
mov rdi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000d949
mov rdi, qword [rbx]
test r8, r8
je 0x14000d976
mov edx, 0x23
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14000d976
sub rax, rdi
cmp rax, r15
je 0x14000d976
xor r8d, r8d
mov rdx, rax
mov rcx, rbx
call fcn.140009e80
mov r14, qword [rbx + 0x10]
mov r13, rbx
mov rax, qword [rbx + 0x18]
cmp rax, 0x10
jb 0x14000d98a
mov r13, qword [rbx]
test r14, r14
je 0x14000da67
mov r8, r14
mov edx, 0x2f
mov rcx, r13
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x14000da63
sub rdi, r13
cmp rdi, r15
je 0x14000da63
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8, rdi
cmp r14, rdi
cmovb r8, r14
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000d9e3
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.140006cb0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140021d10
lea rcx, [rsp + 0x30]
call fcn.140007ab0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rax, qword [rbx + 0x10]
cmp rax, rdi
jb 0x14000db88
sub rax, rdi
mov r8, r15
cmp rax, r15
cmovb r8, rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14000da3c
mov rax, qword [rbx]
lea rdx, [rdi + rax]
lea rcx, [rsp + 0x30]
call fcn.140006cb0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140021d10
lea rcx, [rsp + 0x30]
call fcn.140007ab0
jmp 0x14000da98
mov rax, qword [rbx + 0x18]
cmp rsi, rbx
je 0x14000da83
mov rdx, rbx
cmp rax, 0x10
jb 0x14000da78
mov rdx, qword [rbx]
mov r8, r14
mov rcx, rsi
call fcn.140007b10
mov r8d, 1
lea rdx, [0x1401ac868]
mov rcx, rbx
call fcn.140007b10
mov rdi, qword [rsi + 0x10]
mov r14, rsi
mov r13, qword [rsi + 0x18]
cmp r13, 0x10
jb 0x14000daac
mov r14, qword [rsi]
test rdi, rdi
je 0x14000dace
mov r8, rdi
mov edx, 0x3a
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000dace
sub rbx, r14
jmp 0x14000dad1
mov rbx, r15
cmp rbx, r15
je 0x14000db43
lea rax, [rbx + 1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
cmp rdi, rax
jb 0x14000db88
sub rdi, rax
cmp rdi, r15
cmovb r15, rdi
mov rdx, rsi
cmp r13, 0x10
jb 0x14000db0a
mov rdx, qword [rsi]
add rdx, rax
mov r8, r15
lea rcx, [rsp + 0x30]
call fcn.140006cb0
lea rdx, [rsp + 0x30]
lea rcx, [r12 + 0x48]
call fcn.140021d10
lea rcx, [rsp + 0x30]
call fcn.140007ab0
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.140009e80
jmp 0x14000db5b
mov r8d, 2
lea rdx, [0x1401ac86c]
lea rcx, [r12 + 0x48]
call fcn.140007b10
nop
mov rax, r12
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140115c10
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x250
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14000a1e0
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Invalid_WinSock_version
lea rcx, [rsp + 0x30]
call fcn.14000b260
lea rdx, [0x1401cfbf0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14000b8a0
mov r8, rax
lea r9, str.WSAStartup_failed
lea rcx, [rsp + 0x70]
call fcn.14000b590
lea rdx, [0x1401cfbd0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3