Function at 0x421e9b
Capabilities:
Connect socket

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x12c
mov eax, dword [0x486be4]
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x78]
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
mov esi, edx
push edi
mov edi, dword [esi]
or dword [eax], 0xffffffff
mov dword [ebp - 0xb8], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0xa8], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0xb4], esi
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa4], eax
cmp eax, 2
jne 0x421efb
mov dword [ebp - 0xa0], 0x11
jmp 0x421f04
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0xa0], eax
mov edx, dword [ecx + 0x10]
mov eax, 0x100
mov dword [ebp - 0x9c], edx
cmp edx, eax
jbe 0x421f1c
mov dword [ebp - 0x9c], eax
push dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
push dword [ecx + 0x18]
push eax
call fcn.00441220
and dword [ebx], 0
mov eax, dword [edi + 0x174]
add esp, 0xc
test eax, eax
je 0x421f57
lea ecx, [ebp - 0xa8]
push ecx
push 0
push dword [edi + 0x178]
call eax
add esp, 0xc
jmp 0x421f6f
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0xb0], eax
cmp eax, 0xffffffff
jne 0x421f8e
xor eax, eax
mov ecx, dword [ebp + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f928
add ebp, 0x6c
leave
ret
lea ebx, [esi + 0x9a]
lea edi, [esi + 0xc8]
lea esi, [ebp - 0x98]
mov dword [ebp - 0xc0], ebx
call fcn.00421c73
test eax, eax
jne 0x421fea
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0xb4]
call fcn.0042d843
push eax
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0xac]
call fcn.00421478
add esp, 0x18
xor esi, esi
push dword [ebp - 0xb0]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
jmp 0x421f7c
mov ebx, dword [ebp - 0xb4]
push 0x2e
push dword [ebp - 0xc0]
lea esi, [ebx + 0x3c]
push esi
call fcn.00441220
push esi
mov esi, dword [ebp - 0xac]
push str.__Trying__s...
push esi
call fcn.0042140e
push ebx
call fcn.00421c21
add esp, 0x1c
cmp dword [esi + 0x308], 0
je 0x422033
push dword [ebp - 0xb0]
mov edi, ebx
call fcn.00421dee
pop ecx
mov edi, dword [ebp - 0xb0]
push edi
call fcn.00421e43
mov eax, dword [esi + 0x16c]
pop ecx
test eax, eax
je 0x42206a
push 0
push edi
push dword [esi + 0x170]
call eax
add esp, 0xc
mov dword [ebp - 0xb4], eax
test eax, eax
je 0x42206a
push 0x2a
pop esi
jmp 0x421fda
push dword [ebp - 0xa8]
push edi
call fcn.004218ea
pop ecx
pop ecx
test eax, eax
je 0x422083
mov esi, eax
jmp 0x421fda
push 1
push edi
call fcn.0042e04e
cmp dword [ebx + 0x70], 1
pop ecx
pop ecx
jne 0x4220d7
push dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0xac], eax
call fcn.0042b3d7
cmp dword [ebx + 0x200], 1
mov dword [ebx + 0x1f8], eax
mov dword [ebx + 0x1fc], edx
jle 0x4220de
push dword [ebx + 0x204]
push esi
call fcn.0042a362
pop ecx
pop ecx
jmp 0x4220de
and dword [ebp - 0xac], 0
cmp dword [ebp - 0xac], 0xffffffff
jne 0x4221ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [ebp - 0xb4], edi
cmp edi, 0xb
je 0x42218d
cmp edi, 0x2732
jle 0x422112
cmp edi, 0x2734
jle 0x42218d
push edi
push ebx
call fcn.0042d843
push eax
lea eax, [ebx + 0x3c]
push eax
push str.Failed_to_connect_to__s:__s
push esi
call fcn.00421478
add esp, 0x18
mov dword [esi + 0x855c], edi
push dword [ebp - 0xb0]
lea edi, [ebp - 0xb4]
call fcn.00421bc1
cmp dword [ebp - 0xac], 0
pop ecx
jne 0x4221da
test eax, eax
je 0x4221f5
mov eax, dword [ebp - 0xbc]
push str.connected_n
push esi
mov dword [eax], 1
call fcn.0042140e
mov esi, dword [ebp - 0xb0]
push esi
push ebx
call fcn.00421cac
mov eax, dword [ebp - 0xb8]
add esp, 0x10
mov dword [eax], esi
jmp 0x421f7a
push dword [ebp - 0xb0]
mov eax, dword [ebp + 0x74]
push ebx
call fcn.00421893
pop ecx
pop ecx
mov dword [ebp - 0xac], eax
cmp eax, 3
je 0x422062
cmp dword [ebp - 0xac], 1
jne 0x422132
cmp dword [esi + 0x510], 2
jne 0x422132
mov eax, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xb0]
mov dword [eax], ecx
jmp 0x421f7a
cmp dword [ebp - 0xac], 1
jne 0x4221f5
push str.Timeout_n
push esi
call fcn.0042140e
pop ecx
pop ecx
jmp 0x421fd8
mov eax, dword [ebp - 0xb4]
push eax
push ebx
mov dword [esi + 0x855c], eax
call fcn.0042d843
push eax
push 0x470b0c
push esi
call fcn.0042140e
add esp, 0x14
jmp 0x421fd8