Function at 0x4496d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov edx, dword [esi]
push edi
mov dword [ebp - 0xd0], edx
push esi
lea ebx, [ebp - 0xe0]
lea edx, [ebp - 0xcc]
mov dword [ebp - 0xd8], esi
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd4], 0
mov dword [eax], 0xffffffff
call fcn.00449b80
add esp, 4
test eax, eax
jne 0x449981
lea ebx, [ebp - 0xe4]
lea eax, [ebp - 0x38]
lea edi, [ebp - 0xbc]
call fcn.00448ff0
test eax, eax
jne 0x44978f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call fcn.0046a2a0
add esp, 4
push eax
mov eax, dword [ebp - 0xd0]
push edi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0044b120
mov esi, dword [ebp - 0xe0]
mov eax, dword [ebp - 0xd8]
add esp, 0x10
call fcn.00449b30
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xd0]
lea ecx, [ebp - 0x38]
push ecx
push str.__Trying__s..._n
push edi
call fcn.0044b0a0
mov ebx, dword [ebp - 0xe0]
add esp, 0xc
cmp dword [edi + 0x354], 0
je 0x4497bf
mov edx, ebx
mov eax, esi
call fcn.00449560
mov esi, ebx
call fcn.004495d0
mov esi, edi
cmp dword [esi + 0x454], 0
je 0x4497d8
mov edi, ebx
call fcn.00448960
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x449800
mov edx, dword [esi + 0x1b4]
push 0
push ebx
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x44984a
mov dword [ebp - 0xd4], 1
mov eax, dword [ebp - 0xcc]
mov edi, dword [ebp - 0xd8]
push eax
push ebx
push edi
call fcn.00448ae0
add esp, 0xc
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x449871
mov esi, ebx
mov eax, edi
call fcn.00449b30
mov ecx, dword [ebp - 0xd0]
lea eax, [ecx - 1]
neg eax
sbb eax, eax
and eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x449800
mov eax, dword [ebp - 0xd8]
mov esi, ebx
call fcn.00449b30
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
push 1
mov edx, ebx
call fcn.004699e0
add esp, 4
call fcn.0044b9d0
cmp dword [edi + 0x224], 1
mov dword [edi + 0x21c], eax
mov dword [edi + 0x220], edx
jle 0x4498a4
mov eax, dword [edi + 0x228]
mov ecx, esi
call fcn.00442980
cmp dword [ebp - 0xd4], 0
jne 0x449979
cmp dword [edi + 0x7c], 1
jne 0x449979
mov ecx, dword [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xbc]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x44995a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xd4], eax
cmp eax, 0xb
je 0x449950
cmp eax, 0x2732
jle 0x4498f8
cmp eax, 0x2734
jle 0x449950
push edi
mov edi, eax
call fcn.0046a2a0
add esp, 4
push eax
lea eax, [ebp - 0x38]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.0044b0a0
mov ecx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xd8]
mov dword [esi + 0x85dc], ecx
add esp, 0x10
mov esi, ebx
call fcn.00449b30
mov dword [ebp - 0xd0], 7
mov eax, dword [ebp - 0xd0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xd0], 0
mov edx, dword [ebp - 0xdc]
mov eax, dword [ebp - 0xd0]
mov dword [edx], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xdc]
mov dword [eax], ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004751dc
mov esp, ebp
pop ebp
ret