Function at 0x1401003d0
Capabilities:
Connect socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0xf8
mov rax, qword [0x1402274c0]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbp, qword [rcx]
mov qword [r8], 0xffffffffffffffff
mov eax, dword [rdx + 4]
mov rbx, qword [rcx]
mov dword [rsp + 0x20], eax
mov eax, dword [rcx + 0xa4]
xor r12b, r12b
mov dword [rsp + 0x24], eax
cmp eax, 2
mov r15, r8
mov rsi, rcx
mov eax, reloc.WS2_32.dll_recvfrom
je 0x140100426
mov eax, dword [rdx + 0xc]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov ecx, 0x80
cmp eax, ecx
cmova eax, ecx
lea rcx, [rsp + 0x30]
mov r8d, eax
mov dword [rsp + 0x2c], eax
call fcn.140152980
mov rax, qword [rbx + 0x2d8]
test rax, rax
je 0x14010046a
mov rcx, qword [rbx + 0x2e0]
lea r8, [rsp + 0x20]
xor edx, edx
call rax
jmp 0x14010047d
mov r8d, dword [rsp + 0x28]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1401006d4
xor ebx, ebx
cmp word [rsp + 0x30], 2
jne 0x14010069b
lea r9d, [rbx + 0x2e]
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x34]
lea ecx, [rbx + 2]
call fcn.140117040
test rax, rax
je 0x14010069b
movzx ecx, word [rsp + 0x32]
mov qword [rsp + 0xf0], r14
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rsp + 0xb0]
lea rdx, str.__Trying__s..._n
mov rcx, rbp
call fcn.1400fe880
cmp dword [rsp + 0x20], 2
jne 0x1401004f7
cmp dword [rsp + 0x24], 1
jne 0x1401004f7
lea eax, [rbx + 1]
jmp 0x1401004f9
xor eax, eax
test eax, eax
setne r14b
test r14b, r14b
je 0x140100517
cmp byte [rbp + 0x4ce], bl
je 0x140100517
mov rdx, rdi
mov rcx, rsi
call fcn.1400ffb80
mov rcx, rdi
call fcn.1400ff9f0
test r14b, r14b
mov r14, qword [rsp + 0xf0]
je 0x14010053f
cmp byte [rbp + 0x694], bl
je 0x14010053f
mov rdx, rdi
mov rcx, rbp
call fcn.140100700
mov rax, qword [rbp + 0x2c8]
test rax, rax
je 0x140100562
mov rcx, qword [rbp + 0x2d0]
xor r8d, r8d
mov rdx, rdi
call rax
cmp eax, 2
jne 0x1401005a9
mov r12b, 1
cmp dword [rsp + 0x20], 2
jne 0x1401005c2
lea rcx, [rsp + 0x30]
call fcn.1400f49b0
mov r8d, dword [rsp + 0x20]
mov rdx, rdi
mov r9d, eax
mov rcx, rsi
call fcn.1400ffef0
mov ebx, eax
test eax, eax
je 0x1401005c2
mov rdx, rdi
mov rcx, rsi
call fcn.1400ff190
mov eax, 7
cmp ebx, 1
cmove ebx, eax
mov eax, ebx
jmp 0x1401006d6
test eax, eax
je 0x140100562
mov rdx, rdi
mov rcx, rsi
call fcn.1400ff190
mov eax, Ordinal_46
jmp 0x1401006d6
mov edx, 1
mov rcx, rdi
call fcn.14012ec70
call fcn.1400f4800
cmp dword [rsi + 0x340], 1
mov qword [rsi + 0x338], rax
jle 0x1401005f2
mov edx, dword [rsi + 0x344]
mov rcx, rbp
call fcn.1400efec0
test r12b, r12b
jne 0x140100696
cmp dword [rsi + 0xa4], 1
jne 0x140100696
cmp byte [rsi + 0x334], r12b
jne 0x140100637
mov r8d, dword [rsp + 0x2c]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140100637
test ebx, ebx
jne 0x140100692
mov qword [r15], rdi
mov eax, ebx
jmp 0x1401006d6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0xb
je 0x14010068d
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x14010068d
mov edx, eax
mov rcx, rsi
call fcn.140116660
lea r8, [rsp + 0xb0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.1400fe880
mov rdx, rdi
mov rcx, rsi
mov dword [rbp + 0x88bc], ebx
call fcn.1400ff190
mov ebx, 7
mov eax, ebx
jmp 0x1401006d6
xor ebx, ebx
mov qword [r15], rdi
mov eax, ebx
jmp 0x1401006d6
mov qword [r15], rdi
jmp 0x1401006d4
mov byte [rsp + 0xb0], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov edx, eax
mov ebx, eax
call fcn.140116660
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov r9, rax
mov rcx, rbp
call fcn.1400fe7c0
mov rdx, rdi
mov rcx, rsi
call fcn.1400ff190
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140150a60
add rsp, 0xf8
pop r15
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret