Function at 0x1400c52a0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x40
call fcn.1401ef830
sub rsp, rax
mov rax, qword [rdx + 0x38]
xor r15d, r15d
or r14d, 0xffffffff
mov rdi, rdx
test rax, rax
mov rbp, rcx
cmovne r15, rax
mov eax, dword [rdx]
dec eax
cmp eax, 7
ja case.default.0x1400c52fd
lea r13, [0x140000000]
lea r12d, [r14 + 3]
nop dword [rax]
cdqe
mov ecx, dword [r13 + rax*4 + 0xc58b4]
add rcx, r13
jmp rcx
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1400c56c1
cmp byte [rbx], 0
je 0x1400c5324
movzx eax, byte [rbx]
cmp al, 0x3a
je 0x1400c5324
cmp al, 0x2f
je 0x1400c5324
inc rbx
cmp byte [rbx], 0
jne 0x1400c5311
movsx eax, byte [rbx]
mov dword [rsp + 0x88], eax
cmp eax, 0x3a
je 0x1400c533c
cmp eax, 0x2f
jne 0x1400c53d3
mov byte [rbx], 0
inc rbx
cmp dword [rsp + 0x88], 0x3a
jne 0x1400c53d3
cmp byte [rbx], 0
mov rax, rbx
je 0x1400c536a
cmp byte [rax], 0x2f
je 0x1400c5367
inc rax
cmp byte [rax], 0
jne 0x1400c5358
jmp 0x1400c536a
mov byte [rax], 0
mov rsi, qword [rdi + 0x10]
test rsi, rsi
je 0x1400c53a3
mov rax, qword [0x14036bc68]
test rax, rax
je 0x1400c5386
xor edx, edx
mov rcx, rsi
call rax
mov rcx, rsi
call fcn.1402196e8
mov rax, qword [0x14036bc68]
test rax, rax
je 0x1400c53a3
mov edx, 1
xor ecx, ecx
call rax
xor eax, eax
mov rcx, rbx
cmp byte [rbx], al
je 0x1400c53c1
nop dword [rax]
cmp eax, 0x80000000
jae 0x1400c53c1
inc rcx
inc eax
cmp byte [rcx], 0
jne 0x1400c53b0
mov edx, eax
mov rcx, rbx
btr edx, 0x1f
call fcn.1400d3a10
mov qword [rdi + 0x10], rax
cmp qword [rdi + 0x10], 0
je 0x1400c5689
mov dword [rdi], r12d
jmp 0x1400c565c
mov rcx, qword [rdi + 8]
lea rdx, [rdi + 0x1c]
call fcn.140117b20
test eax, eax
jle case.default.0x1400c52fd
mov dword [rdi], 3
jmp 0x1400c565c
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je case.default.0x1400c52fd
lea rdx, [rdi + 0x20]
call fcn.140117ca0
test eax, eax
jle case.default.0x1400c52fd
mov dword [rdi], 4
jmp 0x1400c565c
xor eax, eax
mov qword [rdi + 0x24], rax
mov qword [rdi + 0x2c], rax
movzx ecx, word [rdi + 0x20]
mov word [rdi + 0x24], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 0x26], ax
movzx eax, byte [rdi + 0x1d]
movzx ecx, byte [rdi + 0x1c]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 0x1f]
shl ecx, 8
or ecx, eax
call qword [sym.imp.WS2_32.dll_htonl]
mov edx, 1
mov dword [rdi], 4
mov ecx, r12d
mov dword [rdi + 0x28], eax
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
cmp eax, 0xffffffff
je 0x1400c56e6
mov dword [rbp + 0x28], eax
mov dword [rdi], 8
jmp 0x1400c565c
cmp dword [rdi + 0x18], 0
je 0x1400c5501
movsxd rcx, dword [rbp + 0x28]
lea r8, [rsp + 0x90]
mov edx, 0x8004667e
mov dword [rsp + 0x90], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
test eax, eax
jns 0x1400c54f9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x140341048]
mov dword [rsp + 0x20], 0x233
mov r8d, eax
mov edx, 5
mov ecx, r12d
call fcn.1400a36f0
test ebx, ebx
jne 0x1400c5755
mov dword [rdi], 5
lea r9, [rsp + 0x88]
movsxd rcx, dword [rbp + 0x28]
mov edx, 0xffff
mov r8d, 8
mov dword [rsp + 0x88], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x88], eax
test eax, eax
jns 0x1400c565c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x14032d818]
mov dword [rsp + 0x20], 0xe2
mov r8d, eax
mov edx, 4
mov ecx, r12d
call fcn.1400a36f0
mov rax, qword [rdi + 0x10]
lea r9, [0x14031e0a4]
mov r8, qword [rdi + 8]
lea rdx, [0x1403200ec]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1400a3fe0
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0xe5
lea r9, [0x14032d830]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 6]
call fcn.1400a36f0
jmp case.default.0x1400c52fd
movsxd rcx, dword [rbp + 0x28]
lea rdx, [rdi + 0x24]
and dword [rbp + 0x20], 0xfffffff0
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rbp + 0x24], 0
mov r14d, eax
test eax, eax
jns 0x1400c5656
mov ecx, eax
call fcn.1400d8460
test eax, eax
je 0x1400c579f
or dword [rbp + 0x20], 0xc
mov dword [rdi], 7
mov dword [rbp + 0x24], r12d
jmp case.default.0x1400c52fd
movsxd rcx, dword [rbp + 0x28]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x98]
mov edx, 0xffff
mov qword [rsp + 0x20], rax
mov r8d, 0x1007
mov dword [rsp + 0x30], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
js 0x1400c5809
mov r8d, dword [rsp + 0x98]
mov dword [rsp + 0x88], r8d
test r8d, r8d
jne 0x1400c5817
mov dword [rdi], 6
test r15, r15
je 0x1400c5677
mov edx, dword [rdi]
mov r8d, r14d
mov rcx, rbp
call r15
mov r14d, eax
test eax, eax
je 0x1400c589a
mov eax, dword [rdi]
dec eax
cmp eax, 7
jbe 0x1400c52f0
jmp case.default.0x1400c52fd
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0xa4
lea r9, [0x14032d7a0]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 1]
call fcn.1400a36f0
mov r8, qword [rdi + 8]
lea rdx, [0x14032005c]
mov ecx, r12d
call fcn.1400a3fe0
jmp case.default.0x1400c52fd
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], Ordinal_143
lea r9, [0x14032d7b8]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 3]
call fcn.1400a36f0
jmp case.default.0x1400c52fd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x14032d7d0]
mov dword [rsp + 0x20], reloc.WLDAP32.dll_Ordinal_200
mov r8d, eax
mov edx, 4
mov ecx, r12d
call fcn.1400a36f0
mov rax, qword [rdi + 0x10]
lea r9, [0x14031e054]
mov r8, qword [rdi + 8]
lea rdx, [0x140320084]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1400a3fe0
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0xcb
lea r9, [0x14032d800]
lea ecx, [rdx - 0x53]
lea r8d, [rdx + 3]
call fcn.1400a36f0
jmp case.default.0x1400c52fd
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0xd5
lea r9, [0x14032d7e8]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0xb]
call fcn.1400a36f0
mov rax, qword [rdi + 0x10]
lea r9, [0x14031e07c]
mov r8, qword [rdi + 8]
lea rdx, [0x1403200bc]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1400a3fe0
jmp case.default.0x1400c52fd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, [0x14032d848]
mov dword [rsp + 0x20], 0xf6
mov r8d, eax
mov edx, r12d
mov ecx, r12d
call fcn.1400a36f0
mov rax, qword [rdi + 0x10]
lea r9, [0x14031e0cc]
mov r8, qword [rdi + 8]
lea rdx, [0x140320124]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1400a3fe0
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0xf9
lea r9, [0x14032d860]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 0xc]
call fcn.1400a36f0
jmp case.default.0x1400c52fd
mov r8d, 1
mov dword [rsp + 0x88], r8d
and dword [rbp + 0x20], 0xfffffff0
lea r9, [0x14032d878]
mov edx, r12d
mov dword [rsp + 0x20], 0x104
mov ecx, r12d
call fcn.1400a36f0
mov rax, qword [rdi + 0x10]
lea r9, [0x14031e2c4]
mov r8, qword [rdi + 8]
lea rdx, [0x14032014c]
mov ecx, 4
mov qword [rsp + 0x20], rax
call fcn.1400a3fe0
mov edx, reloc.WS2_32.dll_WSAStartup
mov dword [rsp + 0x20], 0x107
lea r9, [0x14032d890]
lea ecx, [rdx - 0x53]
lea r8d, [rdx - 5]
call fcn.1400a36f0
xor r14d, r14d
jmp case.default.0x1400c52fd
mov r14d, 1
test r15, r15
je 0x1400c5897
mov edx, dword [rdi]
mov r8d, r14d
mov rcx, rbp
call r15
jmp 0x1400c589a
mov eax, r14d
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret