Function at 0x14003e1b0
Capabilities:
Connect socket

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x14008d0f8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, qword [rcx]
or r13, 0xffffffffffffffff
mov qword [r8], r13
xor r15d, r15d
mov eax, dword [rdx + 4]
mov rsi, rcx
mov rbx, qword [rcx]
mov dword [rsp + 0x30], eax
mov eax, dword [rcx + 0xa4]
cmp eax, 2
mov dword [rsp + 0x34], eax
lea eax, [r13 + 0x12]
mov qword [rsp + 0x20], r8
je 0x14003e20a
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 sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x2d8]
test rax, rax
je 0x14003e24e
mov rcx, qword [rbx + 0x2e0]
lea r8, [rsp + 0x30]
xor edx, edx
call rax
jmp 0x14003e261
mov r8d, dword [rsp + 0x38]
mov edx, dword [rsp + 0x34]
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003e533
mov ecx, dword [rsi + 0xa0]
test ecx, ecx
je 0x14003e288
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
cmp eax, 2
je 0x14003e2a6
cmp eax, 0x17
jne 0x14003e4fe
lea rdx, [rsp + 0x48]
mov ecx, eax
jmp 0x14003e2b0
lea rdx, [rsp + 0x44]
mov ecx, 2
mov r9d, reloc.WLDAP32.dll_Ordinal_46
lea r8, [rbp - 0x19]
call fcn.14004be00
test rax, rax
je 0x14003e4fe
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rbp - 0x19]
mov qword [rsp + 0x158], r12
lea rdx, str.__Trying__s..._n
mov rcx, r14
call fcn.14003c3f0
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x14003e2fc
cmp eax, 0x17
jne 0x14003e308
cmp dword [rsp + 0x34], 1
jne 0x14003e308
mov r12b, 1
jmp 0x14003e30b
xor r12b, r12b
test r12b, r12b
je 0x14003e324
cmp byte [r14 + 0x5a6], bl
je 0x14003e324
mov rdx, rdi
mov rcx, rsi
call fcn.14003d890
mov rcx, rdi
call fcn.14003d6f0
test r12b, r12b
je 0x14003e345
cmp byte [r14 + 0x7d4], bl
je 0x14003e345
mov rdx, rdi
mov rcx, r14
call fcn.14003e540
mov rax, qword [r14 + 0x2c8]
test rax, rax
je 0x14003e383
mov rcx, qword [r14 + 0x2d0]
xor r8d, r8d
mov rdx, rdi
call rax
mov r15d, eax
cmp eax, 2
jne 0x14003e36d
mov r12b, 1
jmp 0x14003e386
test eax, eax
je 0x14003e383
mov rdx, rdi
mov rcx, rsi
call fcn.14003cda0
mov eax, Ordinal_46
jmp 0x14003e3cf
xor r12b, r12b
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x14003e394
cmp eax, 0x17
jne 0x14003e3f5
lea rcx, [rsp + 0x40]
call fcn.140060460
mov r8d, dword [rsp + 0x30]
mov r9d, eax
mov rdx, rdi
mov rcx, rsi
call fcn.14003dc10
mov ebx, eax
test eax, eax
je 0x14003e3f5
mov rdx, rdi
mov rcx, rsi
call fcn.14003cda0
cmp ebx, 1
mov eax, 7
cmove ebx, eax
mov eax, ebx
mov r12, qword [rsp + 0x158]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14006df60
add rsp, 0x100
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edx, 1
mov rcx, rdi
call fcn.1400604d0
call fcn.140032950
cmp dword [rsi + 0x534], 1
mov qword [rsi + 0x52c], rax
jle 0x14003e426
mov rdx, qword [rsi + 0x538]
mov rcx, r14
call fcn.14002dbc0
test r12b, r12b
jne 0x14003e4ef
cmp dword [rsi + 0xa4], 1
jne 0x14003e4ef
cmp byte [rsi + 0x526], r12b
jne 0x14003e460
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov r13d, eax
cmp eax, 0xffffffff
jne 0x14003e469
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r15d, eax
cmp dword [rsp + 0x30], 0x17
sete cl
mov byte [rsi + 0x513], cl
cmp r13d, 0xffffffff
jne 0x14003e4da
cmp r15d, 0xb
je 0x14003e4cb
lea eax, [r15 - 0x2733]
cmp eax, 1
jbe 0x14003e4cb
mov edx, r15d
mov rcx, rsi
call fcn.14004b430
mov r9, rax
lea r8, [rbp - 0x19]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, r14
call fcn.14003c3f0
mov rdx, rdi
mov dword [r14 + 0x4a4c], r15d
mov rcx, rsi
call fcn.14003cda0
lea ebx, [r13 + 8]
jmp 0x14003e3cd
mov rax, qword [rsp + 0x20]
xor ebx, ebx
mov qword [rax], rdi
jmp 0x14003e3cd
test ebx, ebx
jne 0x14003e3cd
mov rax, qword [rsp + 0x20]
mov qword [rax], rdi
jmp 0x14003e3cd
mov rax, qword [rsp + 0x20]
mov qword [rax], rdi
xor eax, eax
jmp 0x14003e3cf
mov byte [rbp - 0x19], bl
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rsi
mov ebx, eax
call fcn.14004b430
mov r9, rax
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, r14
call fcn.14003c320
mov rdx, rdi
mov rcx, rsi
call fcn.14003cda0
xor eax, eax
jmp 0x14003e3d7