Function at 0x1400bd120
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x140158280]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov dword [rsp + 0x44], 0xffffffff
mov dword [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x160]
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x170]
mov qword [rax], 0xffffffffffffffff
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x70]
mov rdx, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x160]
call fcn.1400bce60
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400bd1af
xor eax, eax
jmp 0x1400bd52b
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x80]
call fcn.1400bd6c0
movzx eax, al
test eax, eax
jne 0x1400bd223
call fcn.14007769c
mov edx, dword [rax]
mov rcx, qword [rsp + 0x160]
call fcn.140101900
mov qword [rsp + 0x50], rax
call fcn.14007769c
mov rcx, qword [rsp + 0x50]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x38]
call fcn.1400c3080
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.1400be200
xor eax, eax
jmp 0x1400bd52b
lea r8, [rsp + 0x100]
lea rdx, str.__Trying__s..._n
mov rcx, qword [rsp + 0x38]
call fcn.1400c2b50
cmp dword [rsp + 0x70], 2
jne 0x1400bd254
cmp dword [rsp + 0x74], 1
jne 0x1400bd254
mov dword [rsp + 0x4c], 1
jmp 0x1400bd25c
mov dword [rsp + 0x4c], 0
cmp dword [rsp + 0x4c], 0
jne 0x1400bd26d
mov dword [rsp + 0x48], 0
jmp 0x1400bd275
mov dword [rsp + 0x48], 1
movzx eax, byte [rsp + 0x48]
mov byte [rsp + 0x21], al
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1400bd2a9
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x5ae]
test eax, eax
je 0x1400bd2a9
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.1400bd620
xor eax, eax
test eax, eax
jne 0x1400bd2a9
mov rcx, qword [rsp + 0x30]
call fcn.1400bd550
movzx eax, byte [rsp + 0x21]
test eax, eax
je 0x1400bd2e1
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x7e4]
test eax, eax
je 0x1400bd2e1
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.1400bdf90
mov rax, qword [rsp + 0x38]
cmp qword [rax + 0x2c8], 0
je 0x1400bd344
xor r8d, r8d
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x2d0]
mov rax, qword [rsp + 0x38]
call qword [rax + 0x2c8]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 2
jne 0x1400bd321
mov byte [rsp + 0x20], 1
jmp 0x1400bd344
cmp dword [rsp + 0x28], 0
je 0x1400bd344
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.1400be200
mov eax, Ordinal_46
jmp 0x1400bd52b
cmp dword [rsp + 0x70], 2
jne 0x1400bd3a9
lea rcx, [rsp + 0x80]
call fcn.1401001b0
mov r9d, eax
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.1400bd9a0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x1400bd3a9
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.1400be200
cmp dword [rsp + 0x24], 1
jne 0x1400bd3a0
mov eax, 7
jmp 0x1400bd52b
mov eax, dword [rsp + 0x24]
jmp 0x1400bd52b
mov edx, 1
mov rcx, qword [rsp + 0x30]
call fcn.1400fffb0
lea rcx, [rsp + 0x60]
call fcn.1400c39a0
mov rcx, qword [rsp + 0x160]
lea rdi, [rcx + 0x578]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x160]
cmp dword [rax + 0x588], 1
jle 0x1400bd40b
mov r8d, 3
mov rax, qword [rsp + 0x160]
mov rdx, qword [rax + 0x590]
mov rcx, qword [rsp + 0x38]
call fcn.1400abda0
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400bd469
mov rax, qword [rsp + 0x160]
cmp dword [rax + 0xbc], 1
jne 0x1400bd469
mov rax, qword [rsp + 0x160]
movzx eax, byte [rax + 0x56e]
test eax, eax
je 0x1400bd43a
jmp 0x1400bd456
mov r8d, dword [rsp + 0x7c]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x1400bd467
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x28], eax
jmp 0x1400bd480
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
xor eax, eax
jmp 0x1400bd52b
cmp dword [rsp + 0x44], 0xffffffff
jne 0x1400bd510
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xb
je 0x1400bd4b0
cmp dword [rsp + 0x40], 0x2732
jle 0x1400bd4ba
cmp dword [rsp + 0x40], 0x2734
jle 0x1400bd4b0
jmp 0x1400bd4ba
mov dword [rsp + 0x24], 0
jmp 0x1400bd510
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x160]
call fcn.140101900
mov r9, rax
lea r8, [rsp + 0x100]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, qword [rsp + 0x38]
call fcn.1400c2b50
mov rax, qword [rsp + 0x38]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x4ac4], ecx
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x160]
call fcn.1400be200
mov dword [rsp + 0x24], 7
cmp dword [rsp + 0x24], 0
jne 0x1400bd527
mov rax, qword [rsp + 0x170]
mov rcx, qword [rsp + 0x30]
mov qword [rax], rcx
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14006ed70
add rsp, 0x148
pop rdi
pop rsi
ret