Function at 0x101fd5f0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebx]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0xcc]
mov dword [eax], 0xffffffff
mov eax, dword [ebp + 8]
push edx
push eax
push ebx
mov dword [ebp - 8], 0
mov dword [ebp - 4], edi
call fcn.101fd540
add esp, 0x10
test eax, eax
je 0x101fd632
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
movzx eax, word [ebp - 0xbc]
sub eax, 2
push esi
jne 0x101fd714
push 0x2e
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0xb8]
push edx
push 2
call fcn.102087e0
add esp, 0x10
test eax, eax
je 0x101fd714
mov eax, dword [ebp - 0xba]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
lea edx, [ebp - 0x3c]
push edx
push str.__Trying__s..._n
push edi
call fcn.101fa700
mov esi, dword [ebp - 0xc]
add esp, 0xc
cmp dword [edi + 0x354], 0
je 0x101fd699
mov edx, esi
mov edi, ebx
call fcn.101fd2e0
mov edi, dword [ebp - 4]
push esi
call fcn.101fd340
add esp, 4
cmp dword [edi + 0x454], 0
je 0x101fd6bb
mov edi, esi
mov esi, dword [ebp - 4]
call fcn.101fcb10
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x1b0]
test eax, eax
je 0x101fd6e0
mov ecx, dword [edi + 0x1b4]
push 0
push esi
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x101fd749
mov dword [ebp - 8], 1
mov edx, dword [ebp - 0xcc]
push edx
push esi
push ebx
call fcn.101fcc80
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x101fd762
push esi
push ebx
call fcn.101fd4e0
mov ecx, dword [ebp - 4]
add esp, 8
lea eax, [ecx - 1]
neg eax
sbb eax, eax
pop esi
and eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.102075f0
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.101fa7b0
mov ecx, dword [ebp - 0xc]
push ecx
push ebx
call fcn.101fd4e0
add esp, 0x20
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x101fd6e0
push esi
push ebx
call fcn.101fd4e0
add esp, 8
pop esi
mov eax, 0x2a
pop edi
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.1021bf20
add esp, 8
call fcn.101fa2d0
cmp dword [ebx + 0x24c], 1
mov dword [ebx + 0x244], eax
mov dword [ebx + 0x248], edx
jle 0x101fd797
mov eax, dword [ebx + 0x250]
push eax
push edi
call fcn.101f0f60
add esp, 8
cmp dword [ebp - 8], 0
jne 0x101fd82e
cmp dword [ebx + 0x8c], 1
jne 0x101fd82e
mov ecx, dword [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xbc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x101fd820
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 8], eax
cmp eax, 0xb
je 0x101fd819
cmp eax, 0x2732
jle 0x101fd7e4
cmp eax, 0x2734
jle 0x101fd819
push eax
push ebx
call fcn.102075f0
push eax
lea eax, [ebp - 0x3c]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push edi
call fcn.101fa700
mov ecx, dword [ebp - 8]
push esi
push ebx
mov dword [edi + 0x85dc], ecx
call fcn.101fd4e0
add esp, 0x20
pop esi
mov eax, 7
pop edi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov dword [edx], esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret