Function at 0x14001b4d0
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 [0x140181f80]
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 0x14001bc63
movzx eax, word [rbp - 0x80]
cmp al, 2
jne 0x14001bc3a
shr ax, 8
cmp al, 2
jne 0x14001bc3a
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 0x14001b5d2
mov r15, qword [rsi]
mov r12, 0xffffffffffffffff
cmp r13, 3
jb 0x14001b645
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 0x14001b641
nop
cmp byte [rbx], 0x3a
jne 0x14001b615
cmp byte [rbx + 1], 0x2f
jne 0x14001b615
cmp byte [rbx + 2], 0x2f
jne 0x14001b615
xor eax, eax
jmp 0x14001b61a
sbb eax, eax
or eax, 1
test eax, eax
je 0x14001b768
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 0x14001b600
mov rax, qword [rsi + 0x18]
mov rbx, r12
cmp rbx, r12
je 0x14001b774
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 0x14001b678
mov rdx, qword [rsi]
lea rcx, [rsp + 0x20]
call fcn.140011c40
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x20]
call fcn.14001ef80
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001b6cd
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b6c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bb67
call fcn.14011ba14
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 0x14001bc34
sub rax, rbx
mov r8, r12
cmp rax, r12
cmovb r8, rax
cmp qword [rsi + 0x18], 0xf
jbe 0x14001b706
mov rsi, qword [rsi]
lea rdx, [rsi + rbx]
lea rcx, [rsp + 0x20]
call fcn.140011c40
lea rcx, [rdi + 0x88]
lea rdx, [rsp + 0x20]
call fcn.14001ef80
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001b7d7
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b761
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bb67
call fcn.14011ba14
jmp 0x14001b7d7
sub rbx, r15
mov rax, qword [rsi + 0x18]
jmp 0x14001b648
lea rcx, [rdi + 8]
mov rdx, qword [rcx + 0x18]
cmp rdx, 4
jb 0x14001b7a2
mov rax, rcx
cmp rdx, 0xf
jbe 0x14001b78e
mov rax, qword [rcx]
mov qword [rcx + 0x10], 4
mov dword [rax], 0x70747468
mov byte [rax + 4], 0
jmp 0x14001b7b5
lea r9, str.http
xor r8d, r8d
lea edx, [r8 + 4]
call fcn.140015670
lea rcx, [rdi + 0x88]
cmp rcx, rsi
je 0x14001b7d7
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x14001b7cf
mov rsi, qword [rsi]
mov rdx, rsi
call fcn.140024e40
lea rbx, [rdi + 0x88]
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14001b7ec
mov rbx, qword [rbx]
test r8, r8
je 0x14001b81d
mov edx, reloc.WLDAP32.dll_Ordinal_35
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14001b81d
sub rax, rbx
cmp rax, r12
je 0x14001b81d
lea rcx, [rdi + 0x88]
xor r8d, r8d
mov rdx, rax
call fcn.140050df0
lea r14, [rdi + 0x88]
mov rbx, qword [r14 + 0x10]
mov r15, qword [r14 + 0x18]
cmp r15, 0xf
jbe 0x14001b835
mov r14, qword [r14]
test rbx, rbx
je 0x14001b987
mov r8, rbx
mov edx, Ordinal_50
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
je 0x14001b987
sub rsi, r14
cmp rsi, r12
je 0x14001b987
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 0x14001b891
mov rdx, qword [rdx]
lea rcx, [rsp + 0x20]
call fcn.140011c40
lea rcx, [rdi + 0x28]
lea rdx, [rsp + 0x20]
call fcn.14001ef80
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001b8e6
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b8e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bb67
call fcn.14011ba14
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 0x14001bc34
sub rcx, rsi
mov r8, r12
cmp rcx, r12
cmovb r8, rcx
cmp qword [rax + 0x18], 0xf
jbe 0x14001b922
mov rax, qword [rax]
lea rdx, [rax + rsi]
lea rcx, [rsp + 0x20]
call fcn.140011c40
lea rcx, [rdi + 0x88]
lea rdx, [rsp + 0x20]
call fcn.14001ef80
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001ba17
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001b97d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bb67
call fcn.14011ba14
jmp 0x14001ba17
lea r9, [rdi + 0x88]
lea rcx, [rdi + 0x28]
cmp rcx, r9
je 0x14001b9d8
cmp r15, 0xf
jbe 0x14001b9a0
mov r9, qword [r9]
mov rax, qword [rcx + 0x18]
cmp rbx, rax
ja 0x14001b9cd
mov rsi, rcx
cmp rax, 0xf
jbe 0x14001b9b5
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 0x14001b9d8
xor r8d, r8d
mov rdx, rbx
call fcn.140015670
lea rcx, [rdi + 0x88]
mov rdx, qword [rcx + 0x18]
cmp rdx, 1
jb 0x14001ba04
mov rax, rcx
cmp rdx, 0xf
jbe 0x14001b9f5
mov rax, qword [rcx]
mov qword [rcx + 0x10], 1
mov word [rax], Ordinal_50
jmp 0x14001ba17
lea r9, [0x140139fbc]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.140015670
lea r14, [rdi + 0x28]
mov rbx, qword [r14 + 0x10]
mov r15, qword [r14 + 0x18]
cmp r15, 0xf
jbe 0x14001ba2c
mov r14, qword [r14]
test rbx, rbx
je 0x14001ba4e
mov r8, rbx
mov edx, Ordinal_60
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
je 0x14001ba4e
sub rsi, r14
jmp 0x14001ba51
mov rsi, r12
cmp rsi, r12
je 0x14001bb78
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 0x14001ba82
mov rdx, qword [rdx]
lea rcx, [rsp + 0x20]
call fcn.140011c40
lea rcx, [rdi + 0x48]
lea rdx, [rsp + 0x20]
call fcn.14001ef80
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001bad7
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bad2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bb67
call fcn.14011ba14
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 0x14001bc34
sub rcx, rsi
cmp rcx, r12
cmovb r12, rcx
cmp qword [rax + 0x18], 0xf
jbe 0x14001bb10
mov rax, qword [rax]
lea rdx, [rax + rsi]
mov r8, r12
lea rcx, [rsp + 0x20]
call fcn.140011c40
lea rcx, [rdi + 0x68]
lea rdx, [rsp + 0x20]
call fcn.14001ef80
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x14001bc07
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bb6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001bb6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011ba14
jmp 0x14001bc07
lea r9, [rdi + 0x28]
lea rcx, [rdi + 0x48]
cmp rcx, r9
je 0x14001bbc6
cmp r15, 0xf
jbe 0x14001bb8e
mov r9, qword [r9]
mov rax, qword [rcx + 0x18]
cmp rbx, rax
ja 0x14001bbbb
mov rsi, rcx
cmp rax, 0xf
jbe 0x14001bba3
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 0x14001bbc6
xor r8d, r8d
mov rdx, rbx
call fcn.140015670
lea rcx, [rdi + 0x68]
mov rdx, qword [rcx + 0x18]
cmp rdx, 2
jb 0x14001bbf3
mov rax, rcx
cmp rdx, 0xf
jbe 0x14001bbe0
mov rax, qword [rcx]
mov qword [rcx + 0x10], 2
mov word [rax], 0x3038
mov byte [rax + 2], 0
jmp 0x14001bc07
lea r9, [0x140139fc0]
xor r8d, r8d
lea edx, [r8 + 2]
call fcn.140015670
nop
mov rax, rdi
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.14011bb30
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.140024cc0
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Invalid_WinSock_version
lea rcx, [rsp + 0x20]
call fcn.14001d250
lea rdx, [0x140179628]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14005b420
mov r8, rax
lea r9, str.WSAStartup_failed
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001d360
lea rdx, [0x140179530]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3