Function at 0x140003f50
Capabilities:
Connect socket
Convert ip address from string
Get socket status
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x248]
sub rsp, 0x348
mov rax, qword [0x1400900c0]
xor rax, rsp
mov qword [rbp + 0x238], rax
mov r12, r9
mov r13, r8
mov edi, edx
mov rsi, rcx
mov r15, qword [rbp + 0x2b0]
xor r8d, r8d
mov edx, 1
mov ebx, 2
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x14000404e
mov dword [rbp - 0x10], 1
lea r8, [rbp - 0x10]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x20], 4
lea r9, [0x140089308]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x20], 4
lea r9, [0x140089308]
mov edx, 0xffff
mov r8d, 0x1005
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
mov word [rbp], bx
movzx ecx, di
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 2], ax
lea rbx, [rsi + 8]
mov rdx, rbx
cmp qword [rsi + 0x20], 0xf
jbe 0x140004032
mov rdx, qword [rbx]
lea r8, [rbp + 4]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov rcx, r14
test eax, eax
jg 0x14000405a
call qword [sym.imp.WS2_32.dll_closesocket]
lock inc dword [0x140093560]
jmp 0x1400045e4
mov r8d, select
lea rdx, [rbp]
call qword [sym.imp.WS2_32.dll_connect]
mov qword [rbp + 0x18], r14
mov dword [rbp + 0x10], 1
mov qword [rbp - 8], 3
lea rax, [rbp - 8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x14000457c
lea rdx, [rbp + 0x10]
mov rcx, r14
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14000457c
lea r10, [rbp + 0x235]
test edi, edi
jns 0x140004103
mov r8d, edi
neg r8d
nop word [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x1400040d0
dec r10
mov byte [r10], 0x2d
jmp 0x14000413a
mov r9d, edi
nop word [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r9d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r9b, cl
add r9b, 0x30
mov byte [r10], r9b
mov r9d, edx
test edx, edx
jne 0x140004110
lea r8, [rbp + 0x235]
mov rdx, r10
lea rcx, [rbp - 0x48]
call fcn.14000ef90
nop
mov r8d, 1
lea rdx, [0x140088130]
lea rcx, [rbp - 0x48]
call fcn.14000acb0
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140008c40
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0xf
cmova rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, r13
call fcn.14000acb0
nop
lea rcx, [rsp + 0x40]
call fcn.14000aa30
mov rcx, qword [rsp + 0x40]
xor r13d, r13d
mov qword [rsp + 0x40], r13
mov edx, select
call fcn.14000d680
nop
lea rcx, [rbp - 0x48]
call fcn.14000aa30
mov rcx, qword [rbp - 0x48]
mov qword [rbp - 0x48], r13
mov edx, select
call fcn.14000d680
cmp edi, 0x1bd
jne 0x14000457c
mov qword [rbp - 0x20], r13
mov rcx, rbx
cmp qword [rsi + 0x20], 0xf
jbe 0x1400041eb
mov rcx, qword [rbx]
add rcx, qword [rsi + 0x18]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x220], xmm0
mov qword [rbp + 0x230], rcx
mov edx, 3
lea rcx, [rbp - 0x18]
call fcn.140010030
mov rdi, qword [rsi]
mov rax, qword [rbp + 0x220]
cmp rax, rdi
je 0x14000424c
test rax, rax
je 0x14000422f
lea rcx, [rbp + 0x220]
call fcn.140001c40
mov rax, qword [rdi + 8]
mov qword [rbp + 0x228], rax
lea rax, [rbp + 0x220]
mov qword [rdi + 8], rax
mov qword [rbp + 0x220], rdi
lea rcx, [rbp - 0x18]
call fcn.140010110
cmp qword [rsi + 0x20], 0xf
jbe 0x14000425f
mov rbx, qword [rbx]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
mov edx, 3
lea rcx, [rbp - 0x18]
call fcn.140010030
mov rbx, qword [rsi]
mov rax, qword [rsp + 0x40]
cmp rax, rbx
je 0x1400042ae
test rax, rax
je 0x140004297
lea rcx, [rsp + 0x40]
call fcn.140001c40
mov rax, qword [rbx + 8]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rbx + 8], rax
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x18]
call fcn.140010110
lea r8, [rbp + 0x220]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x48]
call fcn.14000c240
lea rcx, [rax + 8]
cmp qword [rax + 0x20], 7
jbe 0x1400042da
mov rcx, qword [rcx]
lea r8, [rbp - 0x20]
mov edx, 0x64
call qword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov ebx, eax
lea rcx, [rbp - 0x48]
call fcn.14000a950
mov rcx, qword [rbp - 0x48]
xor edi, edi
mov qword [rbp - 0x48], rdi
mov edx, select
call fcn.14000d680
test ebx, ebx
jne 0x14000457c
mov r13, qword [rbp - 0x20]
mov rdx, qword [r13 + 8]
lea rcx, [rsp + 0x40]
call fcn.140008a30
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140008950
mov r8, rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
mov rdx, rsi
xor r8d, r8d
lea rcx, [rsp + 0x68]
call fcn.140008cd0
mov rdi, qword [rsp + 0x58]
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140008b90
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140008950
mov r8, rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9d, edi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rsp + 0x68]
cmp r15, rax
je 0x140004409
mov rcx, r15
call fcn.14000aa30
cmp qword [rbp - 0x78], 0xf
jbe 0x1400043da
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.140001d70
jmp 0x1400043e4
lea rcx, [rsp + 0x68]
call fcn.140001d00
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [r15 + 8], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [r15 + 0x18], xmm1
movdqa xmm0, xmmword [0x140089360]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
lea rcx, [rsp + 0x68]
call fcn.14000aa30
mov rcx, qword [rsp + 0x68]
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov edx, select
call fcn.14000d680
nop
lea rcx, [rsp + 0x40]
call fcn.14000a950
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov edx, select
call fcn.14000d680
mov rdx, qword [r13 + 0x10]
lea rcx, [rsp + 0x40]
call fcn.140008a30
nop
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140008950
mov r8, rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rsi, eax
mov rdx, rsi
xor r8d, r8d
lea rcx, [rbp - 0x70]
call fcn.140008cd0
mov rdi, qword [rsp + 0x58]
xor edx, edx
lea rcx, [rbp - 0x70]
call fcn.140008b90
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140008950
mov r8, rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
mov r9d, edi
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rbp - 0x70]
cmp r12, rax
je 0x140004538
mov rcx, r12
call fcn.14000aa30
cmp qword [rbp - 0x50], 0xf
jbe 0x14000450a
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.140001d70
jmp 0x140004513
lea rcx, [rbp - 0x70]
call fcn.140001d00
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [r12 + 8], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [r12 + 0x18], xmm1
movdqa xmm0, xmmword [0x140089360]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
lea rcx, [rbp - 0x70]
call fcn.14000aa30
mov rcx, qword [rbp - 0x70]
mov qword [rbp - 0x70], r15
mov edx, select
call fcn.14000d680
nop
lea rcx, [rsp + 0x40]
call fcn.14000a950
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], r15
mov edx, select
call fcn.14000d680
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
lock inc dword [0x140093560]
mov ecx, dword [0x140093564]
mov eax, dword [0x140093560]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [0x140089348]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si ebx, xmm1
lea rdx, str._rProgress:
lea rcx, [0x140091630]
call fcn.14000bf90
mov rcx, rax
mov edx, ebx
call fcn.1400084b0
mov rcx, rax
lea rdx, [0x140088134]
call fcn.14000bf90
mov rcx, qword [rbp + 0x238]
xor rcx, rsp
call fcn.140012f40
add rsp, 0x348
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret