Function at 0x140078f70
Capabilities:
Connect socket
Get socket status
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x748], rbx
mov rax, qword [0x1402e44c0]
xor rax, rsp
mov qword [rbp + 0x5f0], rax
mov rbx, rcx
mov r14, qword [rbp + 0x668]
mov qword [rsp + 0x38], r14
mov r15, qword [rbp + 0x670]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
mov dword [rbp - 0x74], r8d
mov qword [rbp - 0x70], 1
xor r13d, r13d
mov dword [rbp - 0x78], r13d
lea rcx, [rsp + 0x60]
call fcn.14005d840
nop
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400790b6
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140079059
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140079054
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007947f
call fcn.1401c4e44
movdqa xmm0, xmmword [0x1402b6db0]
mov byte [rsp + 0x60], 0
movdqu xmmword [rsp + 0x70], xmm0
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x140079085
cmp rcx, r14
mov rax, qword [rcx]
setne dl
call qword [rax + 0x20]
mov qword [r14 + 0x38], r13
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x5f0]
xor rcx, rsp
call fcn.1401c4e20
mov rbx, qword [rsp + 0x748]
add rsp, 0x700
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x140079398
movzx r12d, byte [rbp + 0x660]
nop dword [rax]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140079116
mov r8d, dword [rdi + 0xc]
mov edx, dword [rdi + 8]
mov ecx, dword [rdi + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140079386
test r12b, r12b
je 0x140079142
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x14007915b
mov qword [rsp + 0x58], rbx
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + reloc.WS2_32.dll_recv]
cmp dword [rdi + 4], 0x17
jne 0x140079185
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
mov edx, 0x29
lea r8d, [rdx - 0xe]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x48], 1
lea r8, [rsp + 0x48]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x1400793e7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14007936a
mov rax, qword [r15 + 0x10]
mov r8, qword [rax]
mov rax, qword [r15 + 8]
mov r9, qword [rax]
mov qword [rbp - 0x38], rbx
mov dword [rbp - 0x40], 1
lea rcx, [rbp + 0x1d0]
lea rax, [rbp - 0x40]
mov edx, 4
nop dword [rax]
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x140079200
mov rax, qword [rax]
mov qword [rcx], rax
lea rcx, [rbp + 0x3e0]
lea rax, [rbp - 0x40]
mov edx, 4
nop dword [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x140079270
mov rax, qword [rax]
mov qword [rcx], rax
mov dword [rbp - 0x80], r9d
mov dword [rbp - 0x7c], r8d
lea ecx, [rbx + 1]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3e0]
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_select]
movsxd rsi, eax
test eax, eax
jns 0x140079305
call fcn.1401f5e18
cmp dword [rax], 4
je 0x1400792d0
test rsi, rsi
jle 0x14007936a
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
jne 0x14007932f
lea rdx, [rbp + 0x1d0]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x14007936a
mov dword [rsp + 0x4c], r13d
mov dword [rsp + 0x50], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x14007936a
cmp dword [rsp + 0x4c], 0
je 0x1400793e7
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [r15 + 0x18]
mov dword [rax], 2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400790d0
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x140079059
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140079054
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007947f
jmp 0x140079054
mov dword [rsp + 0x58], r13d
lea r8, [rsp + 0x58]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, qword [r15 + 0x18]
mov dword [rax], r13d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14007944b
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140079446
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007947f
call fcn.1401c4e44
movdqa xmm0, xmmword [0x1402b6db0]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rcx, qword [r14 + 0x38]
test rcx, rcx
je 0x140079477
mov rax, qword [rcx]
cmp rcx, r14
setne dl
call qword [rax + 0x20]
mov qword [r14 + 0x38], r13
mov rax, rbx
jmp 0x14007908c
call fcn.1401f53bc
int3