Function at 0x419c80
Capabilities:
Connect socket

Disassembly:
sub esp, 0x164
mov eax, dword [0x5cb218]
xor eax, esp
mov dword [esp + 0x160], eax
mov eax, dword [esp + 0x170]
mov ecx, dword [esp + 0x16c]
add eax, 0x72
push ebx
mov ebx, dword [esp + 0x16c]
push ebp
lea eax, [ebx + eax*4]
mov byte [esp + 0xb], 0
push edi
mov ebp, dword [ebx]
mov dword [esp + 0x18], eax
mov dword [eax], 0xffffffff
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x30]
push eax
push ecx
push ebx
call fcn.004191e0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x419cf7
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0052e4fa
add esp, 0x164
ret
push esi
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0xc4]
push eax
push dword [esp + 0x44]
lea eax, [esp + 0x4c]
push eax
call fcn.00418800
add esp, 0x10
test al, al
jne 0x419d5c
call fcn.00533923
mov esi, eax
call fcn.00533923
mov edi, eax
lea eax, [esp + 0xf0]
push 0x80
push eax
push dword [esi]
call fcn.0043d4d0
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebp
call fcn.00417e10
push dword [esp + 0x34]
push ebx
call fcn.00418890
add esp, 0x24
jmp 0x419f65
push dword [esp + 0x14]
lea eax, [esp + 0xc4]
push eax
push str.__Trying__s:_ld..._n
push ebp
call fcn.00417ef0
mov eax, dword [esp + 0x40]
add esp, 0x10
cmp eax, 2
je 0x419d84
cmp eax, 0x17
jne 0x419d8f
cmp dword [esp + 0x34], 1
jne 0x419d8f
mov al, 1
jmp 0x419d91
xor al, al
mov esi, dword [esp + 0x18]
mov byte [esp + 0x12], al
test al, al
je 0x419db0
cmp byte [ebp + 0xadb], 0
je 0x419db0
push esi
push ebx
call fcn.0041a070
add esp, 8
push esi
call fcn.00419140
add esp, 4
cmp byte [esp + 0x12], 0
je 0x419dd3
cmp byte [ebp + 0xae4], 0
je 0x419dd3
push esi
push ebp
call fcn.00419f80
add esp, 8
cmp dword [ebp + 0x610], 0
je 0x419e12
push 1
push ebp
call fcn.0040bf70
mov eax, dword [ebp + 0x610]
push 0
push esi
push dword [ebp + 0x614]
call eax
push 0
push ebp
mov dword [esp + 0x30], eax
call fcn.0040bf70
mov eax, dword [esp + 0x30]
add esp, 0x1c
cmp eax, 2
jne 0x419e5b
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x419e20
cmp eax, 0x17
jne 0x419e73
lea eax, [esp + 0x40]
push eax
call fcn.0043dcf0
push eax
push dword [esp + 0x38]
push esi
push ebx
call fcn.00419680
mov edi, eax
add esp, 0x14
test edi, edi
je 0x419e73
push esi
push ebx
call fcn.00418890
add esp, 8
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x419f67
test eax, eax
je 0x419e12
push esi
push ebx
call fcn.00418890
add esp, 8
mov eax, 0x2a
jmp 0x419f67
push 1
push esi
call fcn.0043dd80
lea eax, [esp + 0x28]
push eax
call fcn.0041d230
add esp, 0xc
cmp dword [ebx + 0x2d8], 1
movups xmm0, xmmword [eax]
movups xmmword [ebx + 0x2c8], xmm0
jle 0x419eb2
push 3
push dword [ebx + 0x2e4]
push dword [ebx + 0x2e0]
push ebp
call fcn.0040bc20
add esp, 0x10
cmp byte [esp + 0x13], 0
jne 0x419f5f
cmp dword [ebx + 0x90], 4
je 0x419f5f
cmp byte [ebx + 0x2c0], 0
jne 0x419ef6
push dword [esp + 0x3c]
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x419ef6
test edi, edi
jne 0x419f5b
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
mov eax, edi
jmp 0x419f67
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x419f53
cmp edi, 0x2732
jle 0x419f13
cmp edi, 0x2734
jle 0x419f53
push 0x80
lea eax, [esp + 0xf4]
push eax
push edi
call fcn.0043d4d0
push eax
lea eax, [esp + 0xd0]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ebp
call fcn.00417ef0
push esi
push ebx
mov dword [ebp + 0xd0c], edi
call fcn.00418890
mov edi, 7
add esp, 0x24
mov eax, edi
jmp 0x419f67
mov eax, dword [esp + 0x1c]
xor edi, edi
mov dword [eax], esi
mov eax, edi
jmp 0x419f67
mov eax, dword [esp + 0x1c]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [esp + 0x170]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052e4fa
add esp, 0x164
ret