Function at 0x140075833
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
jmp 0x1400db9b0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, WSAGetLastError
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2c8]
mov rax, qword [0x1401b3080]
xor rax, rbp
mov qword [rbp + 0x268], rax
lea rcx, [0x1401d14ae]
call fcn.140078d5d
mov qword [rbp + 8], 0
mov r8d, 0x30
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.140077976
mov dword [rbp + 0x30], 1
mov dword [rbp + 0x34], 0
mov rcx, qword [rbp + 0x298]
call fcn.14007511c
movzx eax, al
test eax, eax
jne 0x1400dba62
mov rcx, qword [rbp + 0x298]
call fcn.14007465e
mov qword [rbp + 8], rax
mov dword [rbp + 0x2c], 0
mov dword [rbp + 0x28], 4
jmp 0x1400dba97
mov rcx, qword [rbp + 0x290]
call fcn.14007511c
movzx eax, al
test eax, eax
jne 0x1400dba85
mov rcx, qword [rbp + 0x290]
call fcn.14007465e
mov qword [rbp + 8], rax
mov eax, dword [rbp + 0x2a8]
mov dword [rbp + 0x2c], eax
mov eax, dword [rbp + 0x2b0]
mov dword [rbp + 0x28], eax
mov edx, dword [rbp + 0x2a0]
lea rcx, [rbp + 0x98]
call fcn.140074843
nop
lea rcx, [rbp + 0x98]
call fcn.14007465e
lea r9, [rbp + 0x78]
lea r8, [rbp + 0x28]
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400dbaff
mov qword [rbp + 0x218], 0xffffffffffffffff
lea rcx, [rbp + 0x98]
call fcn.140074dc0
nop
mov rcx, qword [rbp + 0x2c0]
call fcn.140077a48
mov rax, qword [rbp + 0x218]
jmp 0x1400dbcf1
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0xd8], rax
jmp 0x1400dbb1e
mov rax, qword [rbp + 0xd8]
mov rax, qword [rax + 0x28]
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
je 0x1400dbcbc
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov rax, qword [rbp + 0xd8]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0xd8]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0xd8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0xffffffffffffffff
jne 0x1400dbba1
mov rax, qword [rbp + 0xd8]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0xd8]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0xd8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0xf8], rax
cmp qword [rbp + 0xf8], 0xffffffffffffffff
jne 0x1400dbbb0
jmp 0x1400dbb0c
movzx eax, byte [rbp + 0x2b8]
test eax, eax
je 0x1400dbbec
mov dword [rbp + 0x114], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x114]
mov r8d, 1
mov edx, 6
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbp + 0x2c0]
call fcn.140074f2d
movzx eax, al
test eax, eax
je 0x1400dbc12
mov rdx, qword [rbp + 0xf8]
mov rcx, qword [rbp + 0x2c0]
call fcn.1400743c5
mov rax, qword [rbp + 0xd8]
cmp dword [rax + 4], 0x17
jne 0x1400dbc50
mov dword [rbp + 0x134], 0
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x134]
mov r8d, 0x1b
mov edx, 0x29
mov rcx, qword [rbp + 0xf8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r8, qword [rbp + 0xd8]
mov rdx, qword [rbp + 0xf8]
mov rcx, qword [rbp + 0x2c8]
call fcn.1400778ea
movzx eax, al
test eax, eax
je 0x1400dbcab
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, qword [rbp + 0xf8]
mov qword [rbp + 0x238], rax
lea rcx, [rbp + 0x98]
call fcn.140074dc0
nop
mov rcx, qword [rbp + 0x2c0]
call fcn.140077a48
mov rax, qword [rbp + 0x238]
jmp 0x1400dbcf1
mov rcx, qword [rbp + 0xf8]
call fcn.1400770b1
jmp 0x1400dbb0c
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0x258], 0xffffffffffffffff
lea rcx, [rbp + 0x98]
call fcn.140074dc0
nop
mov rcx, qword [rbp + 0x2c0]
call fcn.140077a48
mov rax, qword [rbp + 0x258]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_getpeername
call fcn.140077f61
mov rax, rdi
mov rcx, qword [rbp + 0x268]
xor rcx, rbp
call fcn.140076477
lea rsp, [rbp + 0x278]
pop rdi
pop rbp
ret