Function at 0x140033640
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x1400a3708]
xor rax, rsp
mov qword [rbp + 0x60], rax
cmp dword [0x1400a4be0], 0
movups xmm0, xmmword [0x1400a4bc0]
mov dword [rsp + 0x54], reloc.WS2_32.dll_recv
mov dword [rsp + 0x58], 0x1c
movups xmmword [rbp - 0x40], xmm0
je 0x14003368b
test ecx, ecx
jne 0x14003368b
xor eax, eax
jmp 0x140033953
xor eax, eax
mov qword [rsp + 0x190], rdi
mov qword [rsp + 0x60], rax
mov edi, 2
mov qword [rsp + 0x68], rax
mov word [rsp + 0x60], di
lea ecx, [rax + 0x35]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x62], ax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x44]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, [0x14009ef88]
lea rax, [rsp + 0x4c]
lea rcx, str.18.244.0.188
mov qword [rsp + 0x20], rax
call fcn.14002a8b0
cmp eax, 4
jne 0x1400339df
mov ecx, dword [rsp + 0x44]
cmp ecx, 0xff
ja 0x1400339df
mov eax, dword [rsp + 0x48]
cmp eax, 0xff
ja 0x1400339df
mov edx, dword [rsp + 0x4c]
cmp edx, 0xff
ja 0x1400339df
mov r8d, dword [rsp + 0x50]
cmp r8d, 0xff
ja 0x1400339df
shl ecx, 8
or ecx, eax
mov qword [rsp + 0x188], rsi
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, r8d
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x64], eax
mov esi, reloc.WS2_32.dll_socket
xor eax, eax
lea ecx, [rdi + 0x33]
mov qword [rbp - 0x60], rax
mov word [rbp - 0x60], si
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], eax
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbp - 0x58]
mov ecx, esi
lea rdx, str.2001:4860:b002::68
mov word [rbp - 0x5e], ax
call fcn.140031840
test eax, eax
je 0x140033968
xor eax, eax
mov qword [rsp + 0x180], rbx
lea r8d, [rdi + 0xf]
mov qword [rbp - 0x70], rax
mov edx, edi
mov qword [rbp - 0x68], rax
mov ecx, edi
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
test rax, rax
js 0x14003389a
lea r8d, [rdi + 0xe]
mov rcx, rax
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140033891
lea r8, [rsp + 0x54]
mov rcx, rbx
lea rdx, [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140033891
mov ecx, dword [rbp - 0x6c]
call qword [sym.imp.WS2_32.dll_ntohl]
test eax, eax
je 0x14003383a
shr eax, 0x18
cmp eax, 0x7f
je 0x14003383a
and eax, 0xf0
cmp al, 0xe0
je 0x14003383a
mov dword [0x1400a4be4], 1
jmp 0x140033891
mov ecx, dword [rbp - 0x6c]
call qword [sym.imp.WS2_32.dll_ntohl]
mov ecx, eax
movzx r9d, al
shr ecx, 8
movzx r8d, cl
mov ecx, eax
mov dword [rsp + 0x30], r9d
shr ecx, 0x10
movzx edx, cl
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x28], r8d
lea r8, str._d._d._d._d
shr eax, 0x18
mov dword [rsp + 0x20], edx
mov r9d, eax
mov edx, 0x80
call fcn.140031340
lea rdx, [rbp - 0x20]
lea rcx, str.Got_a_strange_local_ipv4_address__s
call fcn.140034080
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov r8d, send
mov edx, edi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
test rax, rax
js 0x140033939
mov r8d, 0x1c
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x140033930
lea r8, [rsp + 0x58]
mov rcx, rbx
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140033930
mov rax, qword [rsp + 0x78]
cmp rax, qword [rbp - 0x40]
je 0x14003390a
cmp al, 0xfe
jne 0x1400338fe
movzx eax, byte [rsp + 0x79]
and al, 0xc0
cmp al, 0x80
je 0x14003390a
mov dword [0x1400a4be8], 1
jmp 0x140033930
mov r9d, 0x80
lea r8, [rbp - 0x20]
lea rdx, [rsp + 0x78]
mov ecx, esi
call fcn.140031430
lea rdx, [rbp - 0x20]
lea rcx, str.Got_a_strange_local_ipv6_address__s
call fcn.140034080
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rsp + 0x180]
xor eax, eax
mov rsi, qword [rsp + 0x188]
mov rdi, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140042500
add rsp, 0x170
pop rbp
ret
lea rax, [0x14009f308]
mov r9d, 0x244
mov qword [rsp + 0x28], rax
lea r8, [0x14009f320]
lea rax, [0x14009e2bc]
mov ecx, 0xdeaddead
lea rdx, [0x14009f330]
mov qword [rsp + 0x20], rax
call fcn.140034040
mov ecx, edi
call fcn.14004bcdc
mov rcx, rax
lea r8, [0x14009f370]
lea rax, str.evutil_check_interfaces
mov r9d, 0x244
mov qword [rsp + 0x28], rax
lea rdx, [0x14009f380]
lea rax, [0x14009e2cc]
mov qword [rsp + 0x20], rax
call fcn.1400193c0
call fcn.140054a44
int3
lea rax, [0x14009f250]
mov r9d, 0x23e
mov qword [rsp + 0x28], rax
lea r8, [0x14009f268]
lea rax, [0x14009e26c]
mov ecx, 0xdeaddead
lea rdx, [0x14009f278]
mov qword [rsp + 0x20], rax
call fcn.140034040
mov ecx, edi
call fcn.14004bcdc
mov rcx, rax
lea r8, [0x14009f2b8]
lea rax, [0x14009f2a0]
mov r9d, 0x23e
mov qword [rsp + 0x28], rax
lea rdx, [0x14009f2c8]
lea rax, [0x14009e284]
mov qword [rsp + 0x20], rax
call fcn.1400193c0
call fcn.140054a44
int3