Function at 0x140021c60
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 [0x1401d0680]
xor rax, rsp
mov qword [rbp + 0x120], rax
movzx r14d, r8b
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x50], 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 0x1400222fd
movzx eax, word [rbp - 0x80]
cmp al, 2
jne 0x1400222d4
shr ax, 8
cmp al, 2
jne 0x1400222d4
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
mov r13, qword [rsi + 0x10]
mov r15, rsi
mov rax, qword [rsi + 0x18]
cmp rax, 0xf
jbe 0x140021d43
mov r15, qword [rsi]
mov r12, 0xffffffffffffffff
cmp r13, 3
jb 0x140021db5
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 0x140021db1
cmp byte [rbx], 0x3a
jne 0x140021d85
cmp byte [rbx + 1], 0x2f
jne 0x140021d85
cmp byte [rbx + 2], 0x2f
jne 0x140021d85
xor eax, eax
jmp 0x140021d8a
sbb eax, eax
or eax, 1
test eax, eax
je 0x140021ed5
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 0x140021d70
mov rax, qword [rsi + 0x18]
mov rbx, r12
cmp rbx, r12
je 0x140021ee1
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8, rbx
cmp r13, rbx
cmovb r8, r13
mov rdx, rsi
cmp rax, 0xf
jbe 0x140021de8
mov rdx, qword [rsi]
lea rcx, [rsp + 0x28]
call fcn.14001b1d0
lea rcx, [rdi + 8]
lea rdx, [rsp + 0x28]
call fcn.140025370
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140021e3d
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021e38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002223f
call fcn.140147368
add rbx, 3
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov rax, qword [rsi + 0x10]
cmp rax, rbx
jb 0x1400222ce
sub rax, rbx
mov r8, r12
cmp rax, r12
cmovb r8, rax
cmp qword [rsi + 0x18], 0xf
jbe 0x140021e76
mov rsi, qword [rsi]
lea rdx, [rsi + rbx]
lea rcx, [rsp + 0x28]
call fcn.14001b1d0
lea rcx, [rdi + 0x68]
lea rdx, [rsp + 0x28]
call fcn.140025370
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140021f45
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140021ece
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002223f
call fcn.140147368
jmp 0x140021f45
sub rbx, r15
mov rax, qword [rsi + 0x18]
jmp 0x140021db8
lea rcx, [rdi + 8]
mov rdx, qword [rcx + 0x18]
cmp rdx, 4
jb 0x140021f0f
mov rax, rcx
cmp rdx, 0xf
jbe 0x140021efb
mov rax, qword [rcx]
mov qword [rcx + 0x10], 4
mov dword [rax], 0x70747468
mov byte [rax + 4], 0
jmp 0x140021f26
lea r9, str.http
movzx r8d, byte [rsp + 0x20]
mov edx, 4
call fcn.14000a3c0
lea rcx, [rdi + 0x68]
cmp rcx, rsi
je 0x140021f45
mov r8, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 0xf
jbe 0x140021f3d
mov rsi, qword [rsi]
mov rdx, rsi
call fcn.140008e20
lea rbx, [rdi + 0x68]
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140021f57
mov rbx, qword [rbx]
test r8, r8
je 0x140021f85
mov edx, reloc.WLDAP32.dll_Ordinal_35
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140021f85
sub rax, rbx
cmp rax, r12
je 0x140021f85
lea rcx, [rdi + 0x68]
xor r8d, r8d
mov rdx, rax
call fcn.14003db40
lea r14, [rdi + 0x68]
mov rbx, qword [r14 + 0x10]
mov r15, qword [r14 + 0x18]
cmp r15, 0xf
jbe 0x140021f9a
mov r14, qword [r14]
test rbx, rbx
je 0x1400220e3
mov r8, rbx
mov edx, Ordinal_50
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
je 0x1400220e3
sub rsi, r14
cmp rsi, r12
je 0x1400220e3
lea rdx, [rdi + 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8, rsi
cmp rbx, rsi
cmovb r8, rbx
cmp r15, 0xf
jbe 0x140021ff3
mov rdx, qword [rdx]
lea rcx, [rsp + 0x28]
call fcn.14001b1d0
lea rcx, [rdi + 0x28]
lea rdx, [rsp + 0x28]
call fcn.140025370
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140022048
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022043
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002223f
call fcn.140147368
lea rax, [rdi + 0x68]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov rcx, qword [rax + 0x10]
cmp rcx, rsi
jb 0x1400222ce
sub rcx, rsi
mov r8, r12
cmp rcx, r12
cmovb r8, rcx
cmp qword [rax + 0x18], 0xf
jbe 0x140022081
mov rax, qword [rax]
lea rdx, [rax + rsi]
lea rcx, [rsp + 0x28]
call fcn.14001b1d0
lea rcx, [rdi + 0x68]
lea rdx, [rsp + 0x28]
call fcn.140025370
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140022174
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400220d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002223f
call fcn.140147368
jmp 0x140022174
lea r9, [rdi + 0x68]
lea rcx, [rdi + 0x28]
cmp rcx, r9
je 0x140022134
cmp r15, 0xf
jbe 0x1400220f9
mov r9, qword [r9]
mov rax, qword [rcx + 0x18]
cmp rbx, rax
ja 0x140022126
mov rsi, rcx
cmp rax, 0xf
jbe 0x14002210e
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 [rsi + rbx], 0
jmp 0x140022134
movzx r8d, byte [rsp + 0x20]
mov rdx, rbx
call fcn.14000a3c0
lea rcx, [rdi + 0x68]
mov rdx, qword [rcx + 0x18]
cmp rdx, 1
jb 0x14002215d
mov rax, rcx
cmp rdx, 0xf
jbe 0x14002214e
mov rax, qword [rcx]
mov qword [rcx + 0x10], 1
mov word [rax], Ordinal_50
jmp 0x140022174
lea r9, [0x140150c0c]
movzx r8d, byte [rsp + 0x20]
mov edx, 1
call fcn.14000a3c0
lea rsi, [rdi + 0x28]
mov r14, qword [rsi + 0x10]
mov r15, qword [rsi + 0x18]
cmp r15, 0xf
jbe 0x140022189
mov rsi, qword [rsi]
test r14, r14
je 0x1400221ab
mov r8, r14
mov edx, Ordinal_60
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400221ab
sub rbx, rsi
jmp 0x1400221ae
mov rbx, r12
cmp rbx, r12
je 0x14002225c
lea rax, [rdi + 0x28]
lea rcx, [rbx + 1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
cmp r14, rcx
jb 0x1400222ce
sub r14, rcx
cmp r14, r12
cmovb r12, r14
cmp r15, 0xf
jbe 0x1400221ec
mov rax, qword [rax]
lea rdx, [rax + rcx]
mov r8, r12
lea rcx, [rsp + 0x28]
call fcn.14001b1d0
lea rcx, [rdi + 0x48]
lea rdx, [rsp + 0x28]
call fcn.140025370
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x14002224b
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022246
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022246
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140147368
lea rcx, [rdi + 0x28]
xor r8d, r8d
mov rdx, rbx
call fcn.14003db40
jmp 0x1400222a1
lea rcx, [rdi + 0x48]
mov rdx, qword [rcx + 0x18]
cmp rdx, 2
jb 0x140022289
mov rax, rcx
cmp rdx, 0xf
jbe 0x140022276
mov rax, qword [rcx]
mov qword [rcx + 0x10], 2
mov word [rax], 0x3038
mov byte [rax + 2], 0
jmp 0x1400222a1
lea r9, [0x140150c10]
movzx r8d, byte [rsp + 0x20]
mov edx, 2
call fcn.14000a3c0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140147480
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.1400094e0
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Invalid_WinSock_version
lea rcx, [rsp + 0x28]
call fcn.1400016e0
lea rdx, [0x1401c9890]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140041950
mov r8, rax
lea r9, str.WSAStartup_failed
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.140022eb0
lea rdx, [0x1401c95f0]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
int3