Function at 0x47bc80
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1f4
mov eax, dword [0x54300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
mov byte [ebp - 0x1c9], 0
mov edx, dword [ebp + 8]
add eax, 0x54
lea eax, [esi + eax*4]
mov dword [ebp - 0x1d0], esi
mov dword [eax], 0xffffffff
mov ebx, ecx
mov dword [ebp - 0x1dc], eax
lea eax, [ebp - 0x1d4]
push edi
push eax
lea eax, [ebp - 0x1c8]
push eax
call fcn.0047c2e0
mov edi, eax
add esp, 8
test edi, edi
jne 0x47bffa
mov edx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1d8]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.0047b100
add esp, 8
test al, al
jne 0x47bd58
call fcn.004c0b08
mov esi, dword [eax]
call fcn.004c0b08
push ecx
lea edx, [ebp - 0x138]
mov ecx, esi
mov edi, eax
call fcn.00498f00
add esp, 4
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00479fc0
push dword [ebp - 0x1d4]
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
call fcn.0047c260
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1d8]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_d...
push ebx
call fcn.00479f40
add esp, 0x10
cmp dword [ebp - 0x1c8], 2
jne 0x47bdb5
cmp dword [ebp - 0x1c4], 1
jne 0x47bdb5
cmp byte [ebx + 0x716], 0
mov esi, dword [ebp - 0x1d4]
je 0x47bd9a
mov edx, esi
mov ecx, ebx
call fcn.0047bb70
mov ecx, esi
call fcn.0047bbe0
cmp byte [ebx + 0x71f], 0
je 0x47bdc2
mov edx, esi
mov ecx, ebx
call fcn.0047a840
jmp 0x47bdc2
mov esi, dword [ebp - 0x1d4]
mov ecx, esi
call fcn.0047bbe0
cmp dword [ebx + 0x1b8], 0
je 0x47be09
mov dl, 1
mov ecx, ebx
call fcn.00479da0
mov eax, dword [ebx + 0x1b8]
push 0
push esi
push dword [ebx + 0x1bc]
call eax
add esp, 0xc
mov dword [ebp - 0x1d8], eax
xor dl, dl
mov ecx, ebx
call fcn.00479da0
mov eax, dword [ebp - 0x1d8]
cmp eax, 2
jne 0x47be56
mov byte [ebp - 0x1c9], 1
cmp dword [ebp - 0x1c8], 2
jne 0x47be7f
push ecx
push 2
mov edx, esi
mov ecx, ebx
call fcn.0047aaf0
mov edi, eax
add esp, 8
test edi, edi
je 0x47be7f
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
push esi
call fcn.0047c260
add esp, 4
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x47be09
mov edx, dword [ebp - 0x1d0]
push esi
call fcn.0047c260
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
mov edx, 1
mov ecx, esi
call fcn.00499890
lea eax, [ebp - 0x1f0]
push eax
call fcn.00498430
mov edx, dword [ebp - 0x1d0]
add esp, 4
mov ecx, dword [eax]
cmp dword [edx + 0x278], 1
mov dword [edx + 0x280], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 0x284], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 0x288], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0x28c], eax
jle 0x47bf0b
push dword [edx + 0x294]
mov ecx, ebx
push dword [edx + 0x290]
mov edx, 3
call fcn.00479a90
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
push dword [edx + 0x29c]
push dword [edx + 0x298]
mov edx, 4
call fcn.00479a90
mov edx, dword [ebp - 0x1d0]
add esp, 0x10
cmp byte [ebp - 0x1c9], 0
jne 0x47bff0
cmp dword [edx + 0x58], 4
je 0x47bff0
cmp byte [edx + 0x26e], 0
jne 0x47bf67
push dword [ebp - 0x1bc]
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x47bf67
test edi, edi
jne 0x47bfdd
mov eax, dword [ebp - 0x1dc]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov ecx, edi
sub ecx, 0xb
je 0x47bfd3
sub ecx, 0x2728
je 0x47bfd3
sub ecx, 1
je 0x47bfd3
push ecx
lea edx, [ebp - 0x138]
mov ecx, edi
call fcn.00498f00
add esp, 4
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s
push ebx
call fcn.00479f40
mov edx, dword [ebp - 0x1d0]
mov ecx, ebx
push esi
mov dword [ebx + 0x964], edi
call fcn.0047c260
mov edi, 7
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1dc]
xor edi, edi
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1dc]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b3dd4
mov esp, ebp
pop ebp
ret