Function at 0x180102790
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x18040b070]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, qword [rcx]
xor r13b, r13b
mov qword [r8], 0xffffffffffffffff
mov r12, r8
mov eax, dword [rdx + 4]
mov r14, rcx
mov rbx, qword [rcx]
mov dword [rsp + 0x30], eax
mov eax, dword [rcx + 0xbc]
cmp eax, 2
mov dword [rsp + 0x34], eax
mov eax, reloc.WS2_32.dll_recvfrom
je 0x1801027ea
mov eax, dword [rdx + 0xc]
mov dword [rsp + 0x38], eax
mov ecx, 0x80
mov eax, dword [rdx + 0x10]
cmp eax, ecx
mov rdx, qword [rdx + 0x20]
cmova eax, ecx
lea rcx, [rsp + 0x40]
mov r8d, eax
mov dword [rsp + 0x3c], eax
call fcn.180134bb0
mov rax, qword [rbx + 0x2d8]
test rax, rax
je 0x18010282e
mov rcx, qword [rbx + 0x2e0]
lea r8, [rsp + 0x30]
xor edx, edx
call rax
jmp 0x180102841
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180102b09
mov ecx, dword [r14 + 0xb8]
test ecx, ecx
je 0x180102869
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x30], 0x17
cmove eax, ecx
mov dword [rsp + 0x58], eax
movzx eax, word [rsp + 0x40]
xor ebx, ebx
mov qword [rsp + 0x158], rdi
cmp eax, 2
je 0x18010288f
cmp eax, 0x17
jne 0x180102abf
lea rdx, [rsp + 0x48]
mov ecx, eax
jmp 0x180102899
lea rdx, [rsp + 0x44]
mov ecx, 2
mov r9d, reloc.WLDAP32.dll_Ordinal_46
lea r8, [rbp - 0x19]
call fcn.180112f10
test rax, rax
je 0x180102abf
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rbp - 0x19]
mov rcx, r15
lea rdx, str.__Trying__s..._n
call fcn.180100a20
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x1801028dd
cmp eax, 0x17
jne 0x1801028e9
cmp dword [rsp + 0x34], 1
jne 0x1801028e9
mov dil, 1
jmp 0x1801028ec
xor dil, dil
test dil, dil
je 0x180102905
cmp byte [r15 + 0x75e], bl
je 0x180102905
mov rdx, rsi
mov rcx, r14
call fcn.180101e50
mov rcx, rsi
call fcn.180101cb0
test dil, dil
je 0x180102926
cmp byte [r15 + 0x994], bl
je 0x180102926
mov rdx, rsi
mov rcx, r15
call fcn.180102b10
mov rax, qword [r15 + 0x2c8]
test rax, rax
je 0x180102949
mov rcx, qword [r15 + 0x2d0]
xor r8d, r8d
mov rdx, rsi
call rax
cmp eax, 2
jne 0x180102997
mov r13b, 1
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x180102957
cmp eax, 0x17
jne 0x1801029b0
lea rcx, [rsp + 0x40]
call fcn.180129470
mov r8d, dword [rsp + 0x30]
mov r9d, eax
mov rdx, rsi
mov rcx, r14
call fcn.180102200
mov ebx, eax
test eax, eax
je 0x1801029b0
mov rdx, rsi
mov rcx, r14
call fcn.1801013d0
mov eax, 7
cmp ebx, 1
cmove ebx, eax
mov eax, ebx
jmp 0x180102a98
test eax, eax
je 0x180102949
mov rdx, rsi
mov rcx, r14
call fcn.1801013d0
mov eax, Ordinal_46
jmp 0x180102a98
mov edx, 1
mov rcx, rsi
call fcn.180129500
lea rcx, [rsp + 0x20]
call fcn.1800f7be0
cmp dword [r14 + 0x3d8], 1
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x3c8], xmm0
jle 0x1801029f1
mov rdx, qword [r14 + 0x3e0]
mov r8d, 3
mov rcx, r15
call fcn.1800f2f80
test r13b, r13b
jne 0x180102a92
cmp dword [r14 + 0xbc], 1
jne 0x180102a92
cmp byte [r14 + 0x3be], r13b
jne 0x180102a35
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x180102a35
test ebx, ebx
jne 0x180102a8e
mov qword [r12], rsi
mov eax, ebx
jmp 0x180102a98
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0xb
je 0x180102a88
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x180102a88
mov edx, eax
mov rcx, r14
call fcn.1801124d0
mov r9, rax
lea r8, [rbp - 0x19]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, r15
call fcn.180100a20
mov rdx, rsi
mov dword [r15 + 0x4c7c], ebx
mov rcx, r14
call fcn.1801013d0
mov ebx, 7
mov eax, ebx
jmp 0x180102a98
xor ebx, ebx
mov qword [r12], rsi
mov eax, ebx
jmp 0x180102a98
mov qword [r12], rsi
xor eax, eax
mov rdi, qword [rsp + 0x158]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180133f80
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
mov byte [rbp - 0x19], bl
call fcn.1801382ac
mov dword [rax], 0x273f
call fcn.1801382ac
mov rbx, rax
call fcn.1801382ac
mov edx, dword [rbx]
mov rcx, r14
mov rdi, rax
call fcn.1801124d0
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, r15
call fcn.180100920
mov rdx, rsi
mov rcx, r14
call fcn.1801013d0
jmp 0x180102a96
xor eax, eax
jmp 0x180102aa0