Function at 0x461c10
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e0
mov eax, dword [0x5d2020]
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.00461a40
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x461c7c
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0044e502
add esp, 0x1e0
ret
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.00461410
add esp, 0x10
test eax, eax
jne 0x461ce6
mov edi, dword [sym.imp.MSVCR80.dll__errno]
call edi
mov ebp, eax
call edi
mov ecx, dword [ebp]
mov edi, eax
push pe_nt_image_headers32
lea eax, [esp + 0xec]
push eax
push ecx
call fcn.00489550
mov edx, dword [edi]
push eax
push edx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.0045c260
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.004619b0
add esp, 0x24
jmp 0x461f95
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0xbc]
push edx
push str.__Trying__s:_ld..._n
push esi
call fcn.0045c170
mov edi, dword [esp + 0x1c]
add esp, 0x10
cmp dword [esp + 0x28], 2
jne 0x461df1
mov eax, 1
cmp dword [esp + 0x2c], eax
jne 0x461df1
cmp dword [esi + 0xbc8], 0
mov dword [esp + 0xc], eax
je 0x461d37
push ebx
mov ecx, edi
call fcn.004617a0
add esp, 4
push edi
call fcn.00461820
add esp, 4
cmp dword [esp + 0xc], 0
je 0x461d55
cmp dword [esi + 0xbe8], 0
je 0x461d55
call fcn.00460d00
cmp dword [esi + 0x628], 0
je 0x461d98
push 1
push esi
call fcn.0045a080
mov eax, dword [esi + 0x62c]
mov ecx, dword [esi + 0x628]
push 0
push edi
push eax
call ecx
push 0
push esi
mov dword [esp + 0x2c], eax
call fcn.0045a080
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 2
jne 0x461dfe
mov dword [esp + 0x14], 1
cmp dword [esp + 0x28], 2
jne 0x461e29
lea edx, [esp + 0x38]
push edx
call fcn.004545e0
push eax
mov eax, dword [esp + 0x30]
push eax
push edi
push ebx
call fcn.00460ee0
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x461e29
push edi
push ebx
call fcn.004619b0
add esp, 8
cmp ebp, 1
jne 0x461f6d
pop edi
pop esi
lea eax, [ebp + 6]
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0044e502
add esp, 0x1e0
ret
mov dword [esp + 0xc], 0
jmp 0x461d37
test eax, eax
je 0x461d98
push edi
push ebx
call fcn.004619b0
add esp, 8
pop edi
pop esi
mov eax, 0x2a
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0044e502
add esp, 0x1e0
ret
push 1
push edi
call fcn.004875f0
lea ecx, [esp + 0x20]
push ecx
call fcn.00465d60
mov edx, dword [eax]
mov dword [ebx + 0x5a0], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 0x5a4], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 0x5a8], edx
mov eax, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x5b0], 1
mov dword [ebx + 0x5ac], eax
jle 0x461e83
mov ecx, dword [ebx + 0x5bc]
mov edx, dword [ebx + 0x5b8]
push 3
push ecx
push edx
push esi
call fcn.00459dd0
add esp, 0x10
cmp dword [esp + 0x14], 0
jne 0x461f87
cmp dword [ebx + 0x2f8], 4
je 0x461f87
cmp dword [ebx + 0x590], 0
jne 0x461ebe
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x461f5b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xb
je 0x461f31
cmp ebp, 0x2732
jle 0x461edb
cmp ebp, 0x2734
jle 0x461f31
push pe_nt_image_headers32
lea edx, [esp + 0xec]
push edx
push ebp
call fcn.00489550
push eax
lea eax, [esp + 0xc8]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.0045c170
push edi
push ebx
mov dword [esi + 0xe4c], ebp
call fcn.004619b0
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.0044e502
add esp, 0x1e0
ret
mov ecx, dword [esp + 0x1f4]
mov dword [ebx + ecx*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.0044e502
add esp, 0x1e0
ret
test ebp, ebp
jne 0x461f6d
mov ecx, dword [esp + 0x1f4]
mov dword [ebx + ecx*4 + 0x428], edi
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0044e502
add esp, 0x1e0
ret
mov edx, dword [esp + 0x1f4]
mov dword [ebx + edx*4 + 0x428], edi
mov ecx, dword [esp + 0x1e8]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0044e502
add esp, 0x1e0
ret