Function at 0x100529e0
Capabilities:
Connect socket

Disassembly:
mov r11, rsp
sub rsp, 0x148
mov rax, qword [0x100b4478]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov qword [r11 - 8], rbp
mov rbp, qword [rcx]
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x28], r13
mov qword [r8], 0xffffffffffffffff
mov r13, r8
mov qword [r11 - 0x30], r14
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x40]
mov rsi, rcx
xor r14d, r14d
call fcn.10052810
test eax, eax
mov edi, eax
je 0x10052a3f
xor eax, eax
jmp 0x10052cbf
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x168], rbx
call fcn.100521e0
test eax, eax
jne 0x10052aa5
call fcn.100240e0
mov rbx, rax
call fcn.100240e0
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.10076e10
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.1004b840
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.10052770
xor eax, eax
jmp 0x10052cb7
lea r8, [rsp + 0xd0]
lea rdx, str.__Trying__s..._n
mov rcx, rbp
mov qword [rsp + 0x128], r12
call fcn.1004b790
cmp dword [rsp + 0x40], 2
mov rbx, qword [rsp + 0x20]
jne 0x10052af3
cmp dword [rsp + 0x44], 1
jne 0x10052af3
cmp dword [rbp + 0x7fc], r14d
mov r12d, 1
je 0x10052af6
mov rdx, rbx
mov rcx, rsi
call fcn.100524d0
jmp 0x10052af6
xor r12d, r12d
mov rcx, rbx
call fcn.10052570
test r12d, r12d
je 0x10052b17
cmp dword [rbp + 0xa5c], r14d
je 0x10052b17
mov rdx, rbx
mov rcx, rbp
call fcn.100518e0
cmp qword [rbp + 0x2d8], r14
je 0x10052b58
mov edx, 1
mov rcx, rbp
call fcn.1004e960
mov rcx, qword [rbp + 0x2e0]
xor r8d, r8d
mov rdx, rbx
call qword [rbp + 0x2d8]
xor edx, edx
mov rcx, rbp
mov r12d, eax
call fcn.1004e960
cmp r12d, 2
jne 0x10052b9f
lea r14d, [r12 - 1]
cmp dword [rsp + 0x40], 2
jne 0x10052bb9
lea rcx, [rsp + 0x50]
call fcn.1000d3c0
mov r8d, dword [rsp + 0x40]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.10051b60
test eax, eax
mov edi, eax
je 0x10052bb9
mov rdx, rbx
mov rcx, rsi
call fcn.10052770
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x10052caf
test r12d, r12d
je 0x10052b58
mov rdx, rbx
mov rcx, rsi
call fcn.10052770
mov eax, Ordinal_46
jmp 0x10052caf
mov edx, 1
mov rcx, rbx
call fcn.10078fd0
lea rcx, [rsp + 0x20]
call fcn.1006dbf0
cmp dword [rsi + 0x430], 1
mov rcx, qword [rax]
mov qword [rsi + 0x420], rcx
mov rax, qword [rax + 8]
mov qword [rsi + 0x428], rax
jle 0x10052c03
mov rdx, qword [rsi + 0x438]
mov r8d, 3
mov rcx, rbp
call fcn.1004e640
test r14d, r14d
jne 0x10052ca9
cmp dword [rsi + 0xbc], 1
jne 0x10052ca9
cmp dword [rsi + 0x408], r14d
jne 0x10052c46
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10052c46
test edi, edi
jne 0x10052ca5
mov qword [r13], rbx
mov eax, edi
jmp 0x10052caf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
mov edi, eax
je 0x10052c9f
cmp eax, 0x2732
jle 0x10052c61
cmp eax, 0x2734
jle 0x10052c9f
mov edx, eax
mov rcx, rsi
call fcn.10076e10
lea r8, [rsp + 0xd0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.1004b790
mov rdx, rbx
mov rcx, rsi
mov dword [rbp + 0xd74], edi
call fcn.10052770
mov edi, 7
mov eax, edi
jmp 0x10052caf
xor edi, edi
mov qword [r13], rbx
mov eax, edi
jmp 0x10052caf
mov qword [r13], rbx
xor eax, eax
mov r12, qword [rsp + 0x128]
mov rbx, qword [rsp + 0x168]
mov r14, qword [rsp + 0x118]
mov r13, qword [rsp + 0x120]
mov rdi, qword [rsp + 0x130]
mov rsi, qword [rsp + 0x138]
mov rbp, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.10021bf0
add rsp, 0x148
ret