Function at 0x4218b0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x45901c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
mov dword [ebp - 0xdc], edx
mov dword [edx], 0xffffffff
lea edx, [ebp - 0xd4]
push edx
lea edx, [ebp - 0xc4]
push edx
push eax
push ecx
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xc8], esi
call fcn.004217e0
add esp, 0x10
mov dword [ebp - 0xcc], eax
test eax, eax
je 0x42191e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405970
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ebx, [ebp - 0xe0]
lea edi, [ebp - 0x34]
lea esi, [ebp - 0xb4]
call fcn.00421330
test eax, eax
jne 0x421983
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xd0]
mov esi, eax
push esi
push edi
call fcn.00424410
push eax
mov eax, dword [ebp - 0xc8]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.0041efc0
mov ecx, dword [ebp - 0xd4]
push ecx
push edi
call fcn.00421780
add esp, 0x20
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405970
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc8]
lea edx, [ebp - 0x34]
push edx
push str.__Trying__s..._n
push esi
call fcn.0041ef40
mov ebx, dword [ebp - 0xd4]
add esp, 0xc
cmp dword [ebp - 0xc4], 2
jne 0x4219d5
mov eax, 1
cmp dword [ebp - 0xc0], eax
jne 0x4219d5
cmp dword [esi + 0x364], 0
mov dword [ebp - 0xd4], eax
je 0x4219df
mov edi, dword [ebp - 0xd0]
mov edx, ebx
call fcn.00421560
jmp 0x4219e5
mov dword [ebp - 0xd4], 0
mov edi, dword [ebp - 0xd0]
push ebx
call fcn.004215c0
add esp, 4
cmp dword [ebp - 0xd4], 0
je 0x421a0d
cmp dword [esi + 0x46c], 0
je 0x421a0d
mov edi, ebx
call fcn.00420c40
mov edi, dword [ebp - 0xd0]
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x421a35
mov ecx, dword [esi + 0x1b4]
push 0
push ebx
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x421a89
mov dword [ebp - 0xd8], 1
cmp dword [ebp - 0xc4], 2
jne 0x421aad
lea edx, [ebp - 0xb4]
push edx
call fcn.00441e90
push eax
mov eax, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.00420df0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x421ab3
push ebx
push edi
call fcn.00421780
add esp, 8
cmp esi, 1
jne 0x421bd0
pop edi
pop ebx
lea eax, [esi + 6]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405970
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x421a35
push ebx
push edi
call fcn.00421780
add esp, 8
pop edi
pop ebx
mov eax, 0x2a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405970
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xcc]
push 1
push ebx
call fcn.0043ec60
add esp, 8
call fcn.0041eb30
cmp dword [edi + 0x23c], 1
mov dword [edi + 0x234], eax
mov dword [edi + 0x238], edx
jle 0x421aee
mov ecx, dword [edi + 0x240]
mov edx, dword [ebp - 0xc8]
push ecx
push edx
call fcn.0041d2b0
add esp, 8
cmp dword [ebp - 0xd8], 0
jne 0x421be3
cmp dword [edi + 0x8c], 1
jne 0x421be3
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xb4]
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x421bc4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0xb
je 0x421b99
cmp esi, 0x2732
jle 0x421b43
cmp esi, 0x2734
jle 0x421b99
push esi
push edi
call fcn.00424410
push eax
mov eax, dword [ebp - 0xc8]
lea edx, [ebp - 0x34]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push eax
call fcn.0041ef40
mov ecx, dword [ebp - 0xc8]
push ebx
push edi
mov dword [ecx + 0x8604], esi
call fcn.00421780
add esp, 0x20
mov dword [ebp - 0xcc], 7
mov esi, dword [ebp - 0xcc]
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405970
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xdc]
mov dword [ebp - 0xcc], 0
mov esi, dword [ebp - 0xcc]
pop edi
mov dword [edx], ebx
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405970
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x421bd0
mov edx, dword [ebp - 0xdc]
mov dword [edx], ebx
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405970
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xdc]
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ebx
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00405970
mov esp, ebp
pop ebp
ret