Function at 0x48e6b0
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e0
mov eax, dword [0x6204e0]
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.0048e4d0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x48ea31
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.0048df00
add esp, 0x10
test eax, eax
jne 0x48e771
mov edi, dword [sym.imp.MSVCR90.dll__errno]
call edi
mov ebp, eax
call edi
mov ecx, dword [ebp]
mov edi, eax
push 0x100
lea eax, [esp + 0xec]
push eax
push ecx
call fcn.004b55d0
mov edx, dword [edi]
push eax
push edx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.00489340
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.0048e440
add esp, 0x24
jmp 0x48ea2e
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0xbc]
push edx
push str.__Trying__s:_ld..._n
push esi
call fcn.00489260
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 2
je 0x48e7a2
cmp eax, 0x17
jne 0x48e88a
mov eax, 1
cmp dword [esp + 0x2c], eax
jne 0x48e88a
cmp dword [esi + 0xbd0], 0
mov dword [esp + 0xc], eax
je 0x48e7c9
push ebx
mov ecx, edi
call fcn.0048e2d0
add esp, 4
push edi
call fcn.0048e350
add esp, 4
cmp dword [esp + 0xc], 0
je 0x48e7e7
cmp dword [esi + 0xbf0], 0
je 0x48e7e7
call fcn.0048d6f0
cmp dword [esi + 0x628], 0
je 0x48e82a
push 1
push esi
call fcn.00487160
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.00487160
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 2
jne 0x48e897
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x28]
cmp eax, 2
je 0x48e83c
cmp eax, 0x17
jne 0x48e8c2
lea edx, [esp + 0x38]
push edx
call fcn.004b7a00
push eax
mov eax, dword [esp + 0x30]
push eax
push edi
push ebx
call fcn.0048d8d0
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x48e8c2
push edi
push ebx
call fcn.0048e440
add esp, 8
cmp ebp, 1
jne 0x48ea06
pop edi
pop esi
lea eax, [ebp + 6]
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0058ecc6
add esp, 0x1e0
ret
mov dword [esp + 0xc], 0
jmp 0x48e7c9
test eax, eax
je 0x48e82a
push edi
push ebx
call fcn.0048e440
add esp, 8
pop edi
pop esi
mov eax, 0x2a
pop ebp
mov ecx, dword [esp + 0x1dc]
xor ecx, esp
call fcn.0058ecc6
add esp, 0x1e0
ret
push 1
push edi
call fcn.004b3630
lea ecx, [esp + 0x20]
push ecx
call fcn.00491d00
mov edx, dword [eax]
mov dword [ebx + 0x5a8], edx
mov ecx, dword [eax + 4]
mov dword [ebx + 0x5ac], ecx
mov edx, dword [eax + 8]
mov dword [ebx + 0x5b0], edx
mov eax, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x5b8], 1
mov dword [ebx + 0x5b4], eax
jle 0x48e91c
mov ecx, dword [ebx + 0x5c4]
mov edx, dword [ebx + 0x5c0]
push 3
push ecx
push edx
push esi
call fcn.00486eb0
add esp, 0x10
cmp dword [esp + 0x14], 0
jne 0x48ea20
cmp dword [ebx + 0x2f8], 4
je 0x48ea20
cmp dword [ebx + 0x598], 0
jne 0x48e957
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 0x48e9f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xb
je 0x48e9ca
cmp ebp, 0x2732
jle 0x48e974
cmp ebp, 0x2734
jle 0x48e9ca
push 0x100
lea edx, [esp + 0xec]
push edx
push ebp
call fcn.004b55d0
push eax
lea eax, [esp + 0xc8]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00489260
push edi
push ebx
mov dword [esi + 0xe54], ebp
call fcn.0048e440
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.0058ecc6
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.0058ecc6
add esp, 0x1e0
ret
test ebp, ebp
jne 0x48ea06
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.0058ecc6
add esp, 0x1e0
ret
mov edx, dword [esp + 0x1f4]
mov dword [ebx + edx*4 + 0x428], edi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1e4]
pop esi
pop ebp
xor ecx, esp
call fcn.0058ecc6
add esp, 0x1e0
ret