Function at 0x180056280
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x1a0
mov rax, qword [0x1800ac030]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbp, qword [rcx]
movsxd r13, r8d
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x40]
mov rsi, rcx
xor r14d, r14d
mov qword [rcx + r13*8 + 0x268], 0xffffffffffffffff
call fcn.1800560a0
mov edi, eax
test eax, eax
je 0x1800562d5
xor eax, eax
jmp 0x18005658e
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x198], rbx
call fcn.180055950
test eax, eax
jne 0x18005634a
call fcn.180037008
mov rbx, rax
call fcn.180037008
mov ecx, dword [rbx]
lea rdx, [rsp + 0x100]
mov r8d, pe_nt_image_headers64
mov rdi, rax
call fcn.180079630
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.180053b90
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.180056010
xor eax, eax
jmp 0x180056586
mov r9d, dword [rsp + 0x20]
lea r8, [rsp + 0xd0]
lea rdx, str.__Trying__s:_ld..._n
mov rcx, rbp
mov qword [rsp + 0x190], r12
call fcn.180053a90
mov eax, dword [rsp + 0x40]
mov rbx, qword [rsp + 0x28]
cmp eax, 2
je 0x180056381
cmp eax, 0x17
jne 0x1800563a4
cmp dword [rsp + 0x44], 1
jne 0x1800563a4
mov r12d, 1
cmp dword [rbp + 0xf5c], r14d
je 0x1800563a7
mov rdx, rbx
mov rcx, rsi
call fcn.180055d80
jmp 0x1800563a7
xor r12d, r12d
mov rcx, rbx
call fcn.180055e20
test r12d, r12d
je 0x1800563c8
cmp dword [rbp + 0xf7c], r14d
je 0x1800563c8
mov rdx, rbx
mov rcx, rbp
call fcn.180055030
cmp qword [rbp + 0x740], r14
je 0x180056409
mov edx, 1
mov rcx, rbp
call fcn.1800519d0
mov rcx, qword [rbp + 0x748]
xor r8d, r8d
mov rdx, rbx
call qword [rbp + 0x740]
xor edx, edx
mov rcx, rbp
mov r12d, eax
call fcn.1800519d0
cmp r12d, 2
jne 0x180056457
lea r14d, [r12 - 1]
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x180056417
cmp eax, 0x17
jne 0x180056471
lea rcx, [rsp + 0x50]
call fcn.18007ac20
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.180055270
mov edi, eax
test eax, eax
je 0x180056471
mov rdx, rbx
mov rcx, rsi
call fcn.180056010
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x18005657e
test r12d, r12d
je 0x180056409
mov rdx, rbx
mov rcx, rsi
call fcn.180056010
mov eax, Ordinal_46
jmp 0x18005657e
mov edx, 1
mov rcx, rbx
call fcn.180078860
lea rcx, [rsp + 0x28]
call fcn.18006f9c0
cmp dword [rsi + 0x468], 1
mov rcx, qword [rax]
mov qword [rsi + 0x458], rcx
mov rax, qword [rax + 8]
mov qword [rsi + 0x460], rax
jle 0x1800564bb
mov rdx, qword [rsi + 0x470]
mov r8d, 3
mov rcx, rbp
call fcn.180051740
test r14d, r14d
jne 0x180056574
cmp dword [rsi + 0xbc], 4
je 0x180056574
cmp dword [rsi + 0x440], r14d
jne 0x180056502
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x180056502
test edi, edi
jne 0x180056570
mov qword [rsi + r13*8 + 0x268], rbx
mov eax, edi
jmp 0x18005657e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x180056566
cmp eax, 0x2732
jle 0x18005651d
cmp eax, 0x2734
jle 0x180056566
lea rdx, [rsp + 0x100]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180079630
lea r8, [rsp + 0xd0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.180053a90
mov rdx, rbx
mov rcx, rsi
mov dword [rbp + 0x1238], edi
call fcn.180056010
mov edi, 7
mov eax, edi
jmp 0x18005657e
xor edi, edi
mov qword [rsi + r13*8 + 0x268], rbx
mov eax, edi
jmp 0x18005657e
mov qword [rsi + r13*8 + 0x268], rbx
xor eax, eax
mov r12, qword [rsp + 0x190]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1800334b0
add rsp, 0x1a0
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret