Function at 0x426350
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x4d6750]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xd8], eax
push esi
push edi
mov dword [ebp - 0xdc], 0
mov esi, dword [ebx]
mov dword [eax], 0xffffffff
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xd4], esi
push eax
call fcn.004268d0
add esp, 8
test eax, eax
jne 0x42663c
movzx eax, word [ebp - 0xbc]
sub eax, 2
jne 0x426604
push 0x2e
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0xb8]
call fcn.00448d00
add esp, 4
test eax, eax
je 0x426604
push dword [ebp - 0xba]
call dword [sym.imp.WS2_32.dll_ntohs]
lea eax, [ebp - 0x38]
push eax
push str.__Trying__s..._n
push esi
call fcn.00428020
mov edi, dword [ebp - 0xd0]
add esp, 0xc
cmp dword [esi + 0x38c], 0
je 0x426408
mov edx, edi
mov ecx, ebx
call fcn.004261d0
mov ecx, edi
call fcn.00426240
cmp dword [esi + 0x494], 0
je 0x426421
mov edx, edi
mov ecx, esi
call fcn.00425450
mov eax, dword [esi + 0x1e8]
test eax, eax
je 0x426448
push 0
push edi
push dword [esi + 0x1ec]
call eax
add esp, 0xc
cmp eax, 2
jne 0x42648a
mov dword [ebp - 0xdc], 1
push dword [ebp - 0xcc]
mov edx, edi
mov ecx, ebx
call fcn.00425610
mov esi, eax
add esp, 4
mov dword [ebp - 0xe0], esi
test esi, esi
je 0x4264ad
mov edx, edi
mov ecx, ebx
call fcn.00426870
xor eax, eax
cmp esi, 1
cmove esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x426448
mov edx, edi
mov ecx, ebx
call fcn.00426870
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd0], 1
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul ecx, edx, 0x3e8
mov dword [ebx + 0x2ac], edx
sub esi, ecx
imul eax, esi, 0x3e8
cmp dword [ebx + 0x2b4], 1
mov esi, dword [ebp - 0xd4]
mov dword [ebx + 0x2b0], eax
jle 0x426512
mov edx, dword [ebx + 0x2b8]
mov ecx, esi
call fcn.0041c030
cmp dword [ebp - 0xdc], 0
jne 0x4265e9
cmp dword [ebx + 0x8c], 1
jne 0x4265e9
push dword [ebp - 0xc0]
lea eax, [ebp - 0xbc]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4265ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xd0], eax
cmp eax, 0xb
je 0x4265af
cmp eax, 0x2732
jle 0x426568
cmp eax, 0x2734
jle 0x4265af
mov edx, eax
mov ecx, ebx
call fcn.00449440
push eax
lea eax, [ebp - 0x38]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.00428020
mov eax, dword [ebp - 0xd0]
add esp, 0x10
mov edx, edi
mov dword [esi + 0x861c], eax
mov ecx, ebx
call fcn.00426870
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xd8]
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xd8]
mov eax, dword [ebp - 0xe0]
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xd8]
xor eax, eax
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00488366
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, ebx
mov edx, esi
call fcn.00449440
push eax
push esi
mov esi, dword [ebp - 0xd4]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.004280e0
mov edx, dword [ebp - 0xd0]
add esp, 0x10
mov ecx, ebx
call fcn.00426870
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488366
mov esp, ebp
pop ebp
ret