Function at 0x4c3440
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e0
mov eax, dword [0x84dfc0]
xor eax, esp
mov dword [esp + 0x1dc], eax
mov ecx, dword [esp + 0x1e8]
mov eax, dword [esp + 0x1e4]
push ebp
push esi
mov esi, dword [ebx]
lea edx, [esp + 8]
push edx
mov dword [ebx + ecx*4 + 0x428], 0xffffffff
lea ecx, [esp + 0x28]
push ecx
push eax
push ebx
mov dword [esp + 0x20], 0
call fcn.004c3260
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4c37d7
mov ecx, dword [esp + 0x30]
push edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xbc]
push eax
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.004c2be0
add esp, 0x10
test eax, eax
jne 0x4c3501
call fcn.00491c39
mov edi, eax
call fcn.00491c39
mov ecx, dword [edi]
mov ebp, eax
push 0x100
lea eax, [esp + 0xec]
push eax
push ecx
call fcn.004eb470
mov edx, dword [ebp]
push eax
push edx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.004bd3d0
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.004c31d0
add esp, 0x24
jmp 0x4c37d4
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0xbc]
push edx
push str.__Trying__s:_ld..._n
push esi
call fcn.004bd2f0
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 2
je 0x4c3532
cmp eax, 0x17
jne 0x4c361a
mov eax, 1
cmp dword [esp + 0x2c], eax
jne 0x4c361a
cmp dword [esi + 0xc08], 0
mov dword [esp + 0xc], eax
je 0x4c3559
push ebx
mov ecx, edi
call fcn.004c3060
add esp, 4
push edi
call fcn.004c30e0
add esp, 4
cmp dword [esp + 0xc], 0
je 0x4c3577
cmp dword [esi + 0xc28], 0
je 0x4c3577
call fcn.004c23e0
cmp dword [esi + 0x620], 0
je 0x4c35ba
push 1
push esi
call fcn.004bb190
mov eax, dword [esi + 0x624]
mov ecx, dword [esi + 0x620]
push 0
push edi
push eax
call ecx
push 0
push esi
mov dword [esp + 0x2c], eax
call fcn.004bb190
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 2
jne 0x4c3627
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x28]
cmp eax, 2
je 0x4c35cc
cmp eax, 0x17
jne 0x4c3652
lea edx, [esp + 0x38]
push edx
call fcn.004ed810
push eax
mov eax, dword [esp + 0x30]
push eax
push edi
push ebx
call fcn.004c25c0
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x4c3652
push edi
push ebx
call fcn.004c31d0
add esp, 8
cmp ebp, 1
jne 0x4c37ac
pop edi
pop esi
lea eax, [ebp + 6]
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x1e0
ret
mov dword [esp + 0xc], 0
jmp 0x4c3559
test eax, eax
je 0x4c35ba
push edi
push ebx
call fcn.004c31d0
add esp, 8
pop edi
pop esi
mov eax, 0x2a
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x1e0
ret
push 1
push edi
call fcn.004e9360
lea ecx, [esp + 0x20]
push ecx
call fcn.004c6aa0
mov edx, dword [eax]
mov dword [ebx + 0x5c8], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 0x5cc], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 0x5d0], edx
mov eax, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x5d8], 1
mov dword [ebx + 0x5d4], eax
jle 0x4c36c2
mov ecx, dword [ebx + 0x5e4]
mov edx, dword [ebx + 0x5e0]
push 3
push ecx
push edx
push esi
call fcn.004baee0
mov eax, dword [ebx + 0x5ec]
mov ecx, dword [ebx + 0x5e8]
push 4
push eax
push ecx
push esi
call fcn.004baee0
add esp, 0x20
cmp dword [esp + 0x14], 0
jne 0x4c37c6
cmp dword [ebx + 0x2f8], 4
je 0x4c37c6
cmp dword [ebx + 0x5a4], 0
jne 0x4c36fd
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4c379a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xb
je 0x4c3770
cmp ebp, 0x2732
jle 0x4c371a
cmp ebp, 0x2734
jle 0x4c3770
push 0x100
lea ecx, [esp + 0xec]
push ecx
push ebp
call fcn.004eb470
push eax
lea edx, [esp + 0xc8]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.004bd2f0
push edi
push ebx
mov dword [esi + 0xeb4], ebp
call fcn.004c31d0
add esp, 0x24
pop edi
mov ebp, 7
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x1e0
ret
mov eax, dword [esp + 0x1f4]
mov dword [ebx + eax*4 + 0x428], edi
pop edi
xor ebp, ebp
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x1e0
ret
test ebp, ebp
jne 0x4c37ac
mov eax, dword [esp + 0x1f4]
mov dword [ebx + eax*4 + 0x428], edi
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x1e0
ret
mov ecx, dword [esp + 0x1f4]
mov dword [ebx + ecx*4 + 0x428], edi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1e4]
pop esi
pop ebp
xor ecx, esp
call fcn.0048d1f2
add esp, 0x1e0
ret