Function at 0x140012160
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 [0x14015d460]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rsi, rdx
mov r13, 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 0x140012655
movzx eax, word [rbp - 0x60]
cmp al, 2
jne 0x14001262c
shr ax, 8
cmp al, 2
jne 0x14001262c
mov word [r13], 1
xorps xmm0, xmm0
movups xmmword [r13 + 8], xmm0
mov qword [r13 + 0x18], r14
mov qword [r13 + 0x20], reloc.WS2_32.dll_ntohs
mov byte [r13 + 8], dl
lea rdi, [r13 + 0x28]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], dl
movups xmmword [r13 + 0x48], xmm0
mov qword [r13 + 0x58], r14
mov qword [r13 + 0x60], reloc.WS2_32.dll_ntohs
mov byte [r13 + 0x48], dl
movups xmmword [r13 + 0x68], xmm0
mov qword [r13 + 0x78], r14
mov qword [r13 + 0x80], reloc.WS2_32.dll_ntohs
mov byte [r13 + 0x68], dl
lea rbx, [r13 + 0x88]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rbx], dl
mov rcx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140012258
mov rcx, qword [rsi]
lea r12, [rsi + 0x10]
mov r15, qword [r12]
mov qword [rsp + 0x20], 3
lea r9, [0x140129884]
xor r8d, r8d
mov rdx, r15
call fcn.14006de50
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140012336
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8, rax
cmp r15, rax
cmovb r8, r15
mov rdx, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x1400122b0
mov rdx, qword [rsi]
lea rcx, [rsp + 0x30]
call fcn.14006e1d0
lea rdx, [rsp + 0x30]
lea rcx, [r13 + 8]
call fcn.140067c50
lea rcx, [rsp + 0x30]
call fcn.1400076a0
lea rcx, [r14 + 3]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rax, qword [r12]
cmp rax, rcx
jb 0x140012626
sub rax, rcx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
cmp qword [rsi + 0x18], 0x10
jb 0x14001230f
mov rsi, qword [rsi]
lea rdx, [rsi + rcx]
lea rcx, [rsp + 0x30]
call fcn.14006e1d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140067c50
lea rcx, [rsp + 0x30]
call fcn.1400076a0
jmp 0x14001236a
mov r8d, 4
lea rdx, str.http
lea rcx, [r13 + 8]
call fcn.140067a00
cmp rbx, rsi
je 0x14001236a
cmp qword [rsi + 0x18], 0x10
jb 0x14001235b
mov rsi, qword [rsi]
mov r8, qword [r12]
mov rdx, rsi
mov rcx, rbx
call fcn.140067a00
mov r14, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140012377
mov r14, qword [rbx]
mov rsi, qword [rbx + 0x10]
test rsi, rsi
je 0x1400123ad
mov r8, rsi
mov edx, reloc.WLDAP32.dll_Ordinal_35
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x1400123ad
sub rax, r14
cmp rax, 0xffffffffffffffff
je 0x1400123ad
mov rdx, rax
mov rcx, rbx
call fcn.140067840
mov rsi, qword [rbx + 0x10]
mov r15, rbx
mov r12, qword [rbx + 0x18]
cmp r12, 0x10
jb 0x1400123bd
mov r15, qword [rbx]
test rsi, rsi
je 0x14001249d
mov r8, rsi
mov edx, Ordinal_50
mov rcx, r15
call sub.VCRUNTIME140.dll_memchr
mov r14, rax
test rax, rax
je 0x14001249d
sub r14, r15
cmp r14, 0xffffffffffffffff
je 0x14001249d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8, r14
cmp rsi, r14
cmovb r8, rsi
mov rdx, rbx
cmp r12, 0x10
jb 0x140012416
mov rdx, qword [rbx]
lea rcx, [rsp + 0x30]
call fcn.14006e1d0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140067c50
lea rcx, [rsp + 0x30]
call fcn.1400076a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rax, qword [rbx + 0x10]
cmp rax, r14
jb 0x140012626
sub rax, r14
mov r12, 0xffffffffffffffff
mov r8, r12
cmp rax, r12
cmovb r8, rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140012476
mov rax, qword [rbx]
lea rdx, [r14 + rax]
lea rcx, [rsp + 0x30]
call fcn.14006e1d0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140067c50
lea rcx, [rsp + 0x30]
call fcn.1400076a0
jmp 0x1400124d5
cmp rdi, rbx
je 0x1400124b9
mov rdx, rbx
cmp r12, 0x10
jb 0x1400124ae
mov rdx, qword [rbx]
mov r8, rsi
mov rcx, rdi
call fcn.140067a00
mov r8d, 1
lea rdx, [0x140129890]
mov rcx, rbx
call fcn.140067a00
mov r12, 0xffffffffffffffff
mov r15, rdi
mov r14, qword [rdi + 0x18]
cmp r14, 0x10
jb 0x1400124e5
mov r15, qword [rdi]
mov rsi, qword [rdi + 0x10]
test rsi, rsi
je 0x1400125c5
mov r8, rsi
mov edx, Ordinal_60
mov rcx, r15
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400125c5
sub rbx, r15
cmp rbx, 0xffffffffffffffff
je 0x1400125c5
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8, rbx
cmp rsi, rbx
cmovb r8, rsi
mov rdx, rdi
cmp r14, 0x10
jb 0x140012542
mov rdx, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.14006e1d0
lea rdx, [rsp + 0x30]
lea rcx, [r13 + 0x48]
call fcn.140067c50
lea rcx, [rsp + 0x30]
call fcn.1400076a0
inc rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov rax, qword [rdi + 0x10]
cmp rax, rbx
jb 0x140012626
sub rax, rbx
cmp rax, 0xffffffffffffffff
cmovb r12, rax
cmp qword [rdi + 0x18], 0x10
jb 0x14001259a
mov rdi, qword [rdi]
lea rdx, [rdi + rbx]
mov r8, r12
lea rcx, [rsp + 0x30]
call fcn.14006e1d0
lea rdx, [rsp + 0x30]
lea rcx, [r13 + 0x68]
call fcn.140067c50
lea rcx, [rsp + 0x30]
call fcn.1400076a0
jmp 0x1400125f9
lea rcx, [r13 + 0x48]
cmp rcx, rdi
je 0x1400125e2
cmp r14, 0x10
jb 0x1400125d7
mov rdi, qword [rdi]
mov r8, rsi
mov rdx, rdi
call fcn.140067a00
mov r8d, 2
lea rdx, [0x140129894]
lea rcx, [r13 + 0x68]
call fcn.140067a00
nop
mov rax, r13
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140106d80
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.140069520
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, str.Invalid_WinSock_version
lea rcx, [rsp + 0x30]
call fcn.14000e5c0
lea rdx, [0x140156dc0]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14000ec60
mov r8, rax
lea r9, str.WSAStartup_failed
lea rcx, [rsp + 0x70]
call fcn.14000e890
lea rdx, [0x140156d80]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3