Function at 0x46e8b0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x4d84d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xd0], ecx
mov byte [ebp - 0xc5], 0
mov ebx, dword [edi]
mov dword [ecx], 0xffffffff
lea ecx, [ebp - 0xcc]
push ecx
lea ecx, [ebp - 0xc4]
push ecx
push eax
push edi
call fcn.0046e020
add esp, 0x10
test eax, eax
je 0x46e911
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0046e850
add esp, 0xc
test al, al
jne 0x46e96e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00478ce0
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0046d330
push dword [ebp - 0xcc]
push edi
call fcn.0046d910
add esp, 0x20
xor eax, eax
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s..._n
push ebx
call fcn.0046d3d0
mov esi, dword [ebp - 0xcc]
add esp, 0xc
cmp byte [ebx + 0x2e6], 0
je 0x46e999
push esi
push edi
call fcn.0046ec40
add esp, 8
push esi
call fcn.0046df10
add esp, 4
cmp byte [ebx + 0x3d4], 0
je 0x46e9b5
push esi
push ebx
call fcn.0046eb60
add esp, 8
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x46e9d9
push 0
push esi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
cmp eax, 2
jne 0x46ea1c
mov byte [ebp - 0xc5], 1
push dword [ebp - 0xc4]
push esi
push edi
call fcn.0046e370
add esp, 0xc
mov dword [ebp - 0xcc], eax
test eax, eax
je 0x46ea40
push esi
push edi
call fcn.0046d910
mov eax, dword [ebp - 0xcc]
add esp, 8
xor ecx, ecx
cmp eax, 1
cmove eax, ecx
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x46e9d9
push esi
push edi
call fcn.0046d910
add esp, 8
mov eax, 0x2a
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
push 1
push esi
call fcn.0048c740
add esp, 8
call fcn.00465250
cmp dword [edi + 0x1e4], 1
mov dword [edi + 0x1dc], eax
mov dword [edi + 0x1e0], edx
jle 0x46ea74
push dword [edi + 0x1e8]
push ebx
call fcn.004619e0
add esp, 8
cmp byte [ebp - 0xc5], 0
jne 0x46eb43
cmp dword [edi + 0x8c], 1
jne 0x46eb43
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x46eb24
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xcc], eax
cmp eax, 0xb
je 0x46eb09
cmp eax, 0x2732
jle 0x46eac6
cmp eax, 0x2734
jle 0x46eb09
push eax
push edi
call fcn.00478ce0
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebx
call fcn.0046d3d0
mov eax, dword [ebp - 0xcc]
push esi
push edi
mov dword [ebx + 0x856c], eax
call fcn.0046d910
add esp, 0x20
mov eax, 7
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xd0]
xor eax, eax
mov dword [ecx], esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ebp - 0xcc]
mov dword [ecx], esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004909b2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xd0]
xor eax, eax
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004909b2
mov esp, ebp
pop ebp
ret