Function at 0x482550
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x63ae80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
mov dword [ebp - 0xd0], edx
mov dword [edx], 0xffffffff
lea edx, [ebp - 0xd8]
push edx
lea edx, [ebp - 0xc4]
push edx
push eax
push ecx
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xcc], 0
mov dword [ebp - 0xd4], esi
call fcn.00482480
add esp, 0x10
test eax, eax
je 0x4825b8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6d8e
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ebx, [ebp - 0xdc]
lea edi, [ebp - 0x34]
lea esi, [ebp - 0xb4]
call fcn.00481fe0
test eax, eax
jne 0x48261d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xc8]
mov esi, eax
push esi
push edi
call fcn.00484fd0
push eax
mov eax, dword [ebp - 0xd4]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0047f820
mov ecx, dword [ebp - 0xd8]
push ecx
push edi
call fcn.00482420
add esp, 0x20
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6d8e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xd4]
lea edx, [ebp - 0x34]
push edx
push str.__Trying__s..._n
push esi
call fcn.0047f7a0
mov ebx, dword [ebp - 0xd8]
mov edi, dword [ebp - 0xc8]
add esp, 0xc
cmp dword [esi + 0x35c], 0
je 0x482651
mov edx, ebx
call fcn.00482200
push ebx
call fcn.00482260
add esp, 4
cmp dword [esi + 0x45c], 0
je 0x482670
mov edi, ebx
call fcn.004818f0
mov edi, dword [ebp - 0xc8]
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x482698
mov ecx, dword [esi + 0x1b4]
push 0
push ebx
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x4826dd
mov dword [ebp - 0xcc], 1
mov edx, dword [ebp - 0xc4]
push edx
push ebx
push edi
call fcn.00481aa0
add esp, 0xc
mov dword [ebp - 0xc8], eax
test eax, eax
je 0x482701
push ebx
push edi
call fcn.00482420
mov ecx, dword [ebp - 0xc8]
add esp, 8
lea eax, [ecx - 1]
neg eax
pop edi
sbb eax, eax
pop ebx
and eax, ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6d8e
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x482698
push ebx
push edi
call fcn.00482420
add esp, 8
pop edi
pop ebx
mov eax, 0x2a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6d8e
mov esp, ebp
pop ebp
ret
push 1
push ebx
call fcn.004a0aa0
add esp, 8
call fcn.0047f390
cmp dword [edi + 0x238], 1
mov dword [edi + 0x230], eax
mov dword [edi + 0x234], edx
jle 0x482736
mov eax, dword [edi + 0x23c]
push eax
push esi
call fcn.0047db10
add esp, 8
cmp dword [ebp - 0xcc], 0
jne 0x4827f5
cmp dword [edi + 0x8c], 1
jne 0x4827f5
mov ecx, dword [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xb4]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4827d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xcc], eax
cmp eax, 0xb
je 0x4827cc
cmp eax, 0x2732
jle 0x482789
cmp eax, 0x2734
jle 0x4827cc
push eax
push edi
call fcn.00484fd0
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.0047f7a0
mov ecx, dword [ebp - 0xcc]
push ebx
push edi
mov dword [esi + 0x85f4], ecx
call fcn.00482420
add esp, 0x20
pop edi
pop ebx
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6d8e
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc8], 0
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xc8]
pop edi
mov dword [edx], ebx
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6d8e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ebx
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.005a6d8e
mov esp, ebp
pop ebp
ret