Function at 0x14001bf40
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 - 0x130]
sub rsp, 0x230
mov rax, qword [0x140183fc0]
xor rax, rsp
mov qword [rbp + 0x120], rax
movzx r14d, r8b
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor r15d, r15d
mov byte [rcx], r15b
mov ecx, 0x202
lea rdx, [rbp - 0x80]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, eax
test eax, eax
jne 0x14001c6d3
movzx eax, word [rbp - 0x80]
cmp al, 2
jne 0x14001c6aa
shr ax, 8
cmp al, 2
jne 0x14001c6aa
mov byte [rdi], 1
mov byte [rdi + 1], r14b
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], r15
mov qword [rdi + 0x20], reloc.WS2_32.dll_ntohs
mov byte [rdi + 8], bl
movups xmmword [rdi + 0x28], xmm0
mov qword [rdi + 0x38], r15
mov qword [rdi + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rdi + 0x28], bl
movups xmmword [rdi + 0x48], xmm0
mov qword [rdi + 0x58], r15
mov qword [rdi + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rdi + 0x48], bl
movups xmmword [rdi + 0x68], xmm0
mov qword [rdi + 0x78], r15
mov qword [rdi + 0x80], reloc.WS2_32.dll_ntohs
mov byte [rdi + 0x68], bl
movups xmmword [rdi + 0x88], xmm0
mov qword [rdi + 0x98], r15
mov qword [rdi + 0xa0], reloc.WS2_32.dll_ntohs
mov byte [rdi + 0x88], bl
mov r13, qword [rsi + 0x10]
mov r15, rsi
mov rax, qword [rsi + 0x18]
cmp rax, 0xf
jbe 0x14001c042
mov r15, qword [rsi]
mov r12, 0xffffffffffffffff
cmp r13, 3
jb 0x14001c0b5
lea r14, [r15 + r13]
lea r8, [r14 - 2]
sub r8, r15
lea edx, [r12 + 0x3b]
mov rcx, r15
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14001c0b1
nop
cmp byte [rbx], 0x3a
jne 0x14001c085
cmp byte [rbx + 1], 0x2f
jne 0x14001c085
cmp byte [rbx + 2], 0x2f
jne 0x14001c085
xor eax, eax
jmp 0x14001c08a
sbb eax, eax
or eax, 1
test eax, eax
je 0x14001c1d8
inc rbx
lea r8, [r14 - 2]
sub r8, rbx
mov edx, Ordinal_60
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x14001c070
mov rax, qword [rsi + 0x18]
mov rbx, r12
cmp rbx, r12
je 0x14001c1e4
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8, rbx
cmp r13, rbx
cmovb r8, r13
mov rdx, rsi
cmp rax, 0xf
jbe 0x14001c0e8
mov rdx, qword [rsi]
lea rcx, [rsp + 0x20]
call fcn.1400126b0
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x20]
call fcn.14001f9f0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001c13d
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c138
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c5d7
call fcn.14011c524
add rbx, 3
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov rax, qword [rsi + 0x10]
cmp rax, rbx
jb 0x14001c6a4
sub rax, rbx
mov r8, r12
cmp rax, r12
cmovb r8, rax
cmp qword [rsi + 0x18], 0xf
jbe 0x14001c176
mov rsi, qword [rsi]
lea rdx, [rsi + rbx]
lea rcx, [rsp + 0x20]
call fcn.1400126b0
lea rcx, [rdi + 0x88]
lea rdx, [rsp + 0x20]
call fcn.14001f9f0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001c247
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c1d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c5d7
call fcn.14011c524
jmp 0x14001c247
sub rbx, r15
mov rax, qword [rsi + 0x18]
jmp 0x14001c0b8
lea rcx, [rdi + 8]
mov rdx, qword [rcx + 0x18]
cmp rdx, 4
jb 0x14001c212
mov rax, rcx
cmp rdx, 0xf
jbe 0x14001c1fe
mov rax, qword [rcx]
mov qword [rcx + 0x10], 4
mov dword [rax], 0x70747468
mov byte [rax + 4], 0
jmp 0x14001c225
lea r9, str.http
xor r8d, r8d
lea edx, [r8 + 4]
call fcn.1400160e0
lea rcx, [rdi + 0x88]
cmp rcx, rsi
je 0x14001c247
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14001c23f
mov rsi, qword [rsi]
mov rdx, rsi
call fcn.1400258b0
lea rbx, [rdi + 0x88]
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14001c25c
mov rbx, qword [rbx]
test r8, r8
je 0x14001c28d
mov edx, reloc.WLDAP32.dll_Ordinal_35
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14001c28d
sub rax, rbx
cmp rax, r12
je 0x14001c28d
lea rcx, [rdi + 0x88]
xor r8d, r8d
mov rdx, rax
call fcn.140051910
lea r14, [rdi + 0x88]
mov rbx, qword [r14 + 0x10]
mov r15, qword [r14 + 0x18]
cmp r15, 0xf
jbe 0x14001c2a5
mov r14, qword [r14]
test rbx, rbx
je 0x14001c3f7
mov r8, rbx
mov edx, Ordinal_50
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
je 0x14001c3f7
sub rsi, r14
cmp rsi, r12
je 0x14001c3f7
lea rdx, [rdi + 0x88]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8, rsi
cmp rbx, rsi
cmovb r8, rbx
cmp r15, 0xf
jbe 0x14001c301
mov rdx, qword [rdx]
lea rcx, [rsp + 0x20]
call fcn.1400126b0
lea rcx, [rdi + 0x28]
lea rdx, [rsp + 0x20]
call fcn.14001f9f0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001c356
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c351
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c5d7
call fcn.14011c524
lea rax, [rdi + 0x88]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov rcx, qword [rax + 0x10]
cmp rcx, rsi
jb 0x14001c6a4
sub rcx, rsi
mov r8, r12
cmp rcx, r12
cmovb r8, rcx
cmp qword [rax + 0x18], 0xf
jbe 0x14001c392
mov rax, qword [rax]
lea rdx, [rax + rsi]
lea rcx, [rsp + 0x20]
call fcn.1400126b0
lea rcx, [rdi + 0x88]
lea rdx, [rsp + 0x20]
call fcn.14001f9f0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001c487
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c3ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c5d7
call fcn.14011c524
jmp 0x14001c487
lea r9, [rdi + 0x88]
lea rcx, [rdi + 0x28]
cmp rcx, r9
je 0x14001c448
cmp r15, 0xf
jbe 0x14001c410
mov r9, qword [r9]
mov rax, qword [rcx + 0x18]
cmp rbx, rax
ja 0x14001c43d
mov rsi, rcx
cmp rax, 0xf
jbe 0x14001c425
mov rsi, qword [rcx]
mov qword [rcx + 0x10], rbx
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x14001c448
xor r8d, r8d
mov rdx, rbx
call fcn.1400160e0
lea rcx, [rdi + 0x88]
mov rdx, qword [rcx + 0x18]
cmp rdx, 1
jb 0x14001c474
mov rax, rcx
cmp rdx, 0xf
jbe 0x14001c465
mov rax, qword [rcx]
mov qword [rcx + 0x10], 1
mov word [rax], Ordinal_50
jmp 0x14001c487
lea r9, [0x14013c05c]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.1400160e0
lea r14, [rdi + 0x28]
mov rbx, qword [r14 + 0x10]
mov r15, qword [r14 + 0x18]
cmp r15, 0xf
jbe 0x14001c49c
mov r14, qword [r14]
test rbx, rbx
je 0x14001c4be
mov r8, rbx
mov edx, Ordinal_60
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
je 0x14001c4be
sub rsi, r14
jmp 0x14001c4c1
mov rsi, r12
cmp rsi, r12
je 0x14001c5e8
lea rdx, [rdi + 0x28]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov r8, rsi
cmp rbx, rsi
cmovb r8, rbx
cmp r15, 0xf
jbe 0x14001c4f2
mov rdx, qword [rdx]
lea rcx, [rsp + 0x20]
call fcn.1400126b0
lea rcx, [rdi + 0x48]
lea rdx, [rsp + 0x20]
call fcn.14001f9f0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001c547
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c542
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c5d7
call fcn.14011c524
lea rax, [rdi + 0x28]
inc rsi
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov rcx, qword [rax + 0x10]
cmp rcx, rsi
jb 0x14001c6a4
sub rcx, rsi
cmp rcx, r12
cmovb r12, rcx
cmp qword [rax + 0x18], 0xf
jbe 0x14001c580
mov rax, qword [rax]
lea rdx, [rax + rsi]
mov r8, r12
lea rcx, [rsp + 0x20]
call fcn.1400126b0
lea rcx, [rdi + 0x68]
lea rdx, [rsp + 0x20]
call fcn.14001f9f0
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001c677
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c5de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001c5de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011c524
jmp 0x14001c677
lea r9, [rdi + 0x28]
lea rcx, [rdi + 0x48]
cmp rcx, r9
je 0x14001c636
cmp r15, 0xf
jbe 0x14001c5fe
mov r9, qword [r9]
mov rax, qword [rcx + 0x18]
cmp rbx, rax
ja 0x14001c62b
mov rsi, rcx
cmp rax, 0xf
jbe 0x14001c613
mov rsi, qword [rcx]
mov qword [rcx + 0x10], rbx
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x14001c636
xor r8d, r8d
mov rdx, rbx
call fcn.1400160e0
lea rcx, [rdi + 0x68]
mov rdx, qword [rcx + 0x18]
cmp rdx, 2
jb 0x14001c663
mov rax, rcx
cmp rdx, 0xf
jbe 0x14001c650
mov rax, qword [rcx]
mov qword [rcx + 0x10], 2
mov word [rax], 0x3038
mov byte [rax + 2], 0
jmp 0x14001c677
lea r9, [0x14013c060]
xor r8d, r8d
lea edx, [r8 + 2]
call fcn.1400160e0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14011c640
mov rbx, qword [rsp + 0x280]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140025730
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Invalid_WinSock_version
lea rcx, [rsp + 0x20]
call fcn.14001dcc0
lea rdx, [0x14017b778]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14005bf40
mov r8, rax
lea r9, str.WSAStartup_failed
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001ddd0
lea rdx, [0x14017b680]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3