Function at 0x404acd
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2fc
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x2d8], eax
mov edx, dword [ebp + 8]
mov byte [ebp - 0x2ca], al
lea eax, [ebp - 0x2d0]
push eax
or dword [edi + ecx*4 + 0x150], 0xffffffff
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2e4], ecx
mov ecx, ebx
push eax
mov dword [ebp - 0x2dc], edi
call fcn.0040504a
mov dword [ebp - 0x2e0], eax
pop ecx
pop ecx
test eax, eax
jne 0x404e26
mov edx, dword [ebp - 0x2bc]
lea eax, [ebp - 0x2d4]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0040416c
pop ecx
pop ecx
test al, al
jne 0x404b95
call fcn.004d6131
mov esi, dword [eax]
call fcn.004d6131
push ecx
lea edx, [ebp - 0x138]
mov ecx, esi
mov edi, eax
call fcn.0041b637
pop ecx
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00416cbd
mov edi, dword [ebp - 0x2dc]
add esp, 0x10
mov esi, dword [ebp - 0x2d0]
jmp 0x404cdf
push dword [ebp - 0x2d4]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_d...
push ebx
call fcn.00416c42
xor ecx, ecx
add esp, 0x10
inc ecx
cmp dword [ebp - 0x2c8], 2
jne 0x404c19
cmp dword [ebp - 0x2c4], ecx
jne 0x404c19
cmp byte [ebx + 0x70a], 0
mov esi, dword [ebp - 0x2d0]
mov byte [ebp - 0x2c9], cl
je 0x404c26
push 4
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], ecx
push eax
push ecx
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x404c26
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [ebp - 0x238]
mov ecx, eax
call fcn.0041b637
pop ecx
push eax
push str.Could_not_set_TCP_NODELAY:__s
push ebx
call fcn.00416c42
add esp, 0xc
jmp 0x404c26
mov esi, dword [ebp - 0x2d0]
mov byte [ebp - 0x2c9], 0
mov ecx, esi
call fcn.00404a42
cmp byte [ebp - 0x2c9], 0
je 0x404c48
cmp byte [ebx + 0x712], 0
je 0x404c48
mov edx, esi
mov ecx, ebx
call fcn.00403a8c
cmp dword [ebx + 0x1b8], 0
je 0x404c8d
mov dl, 1
mov ecx, ebx
call fcn.00414ab6
push 0
push esi
push dword [ebx + 0x1bc]
call dword [ebx + 0x1b8]
add esp, 0xc
mov dword [ebp - 0x2d4], eax
xor dl, dl
mov ecx, ebx
call fcn.00414ab6
mov eax, dword [ebp - 0x2d4]
cmp eax, 2
jne 0x404cd1
mov byte [ebp - 0x2ca], 1
cmp dword [ebp - 0x2c8], 2
jne 0x404cfb
push ecx
push 2
mov edx, esi
mov ecx, ebx
call fcn.00403cba
mov esi, eax
mov dword [ebp - 0x2e0], esi
pop ecx
pop ecx
test esi, esi
je 0x404cf5
mov eax, dword [ebp - 0x2d0]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00404fde
pop ecx
push 7
pop eax
cmp esi, 1
cmove esi, eax
mov eax, esi
jmp 0x404e26
test eax, eax
je 0x404c8d
mov dword [ebp - 0x2d8], 0x2a
push esi
mov edx, edi
mov ecx, ebx
call fcn.00404fde
mov eax, dword [ebp - 0x2d8]
pop ecx
jmp 0x404e26
mov esi, dword [ebp - 0x2d0]
mov ecx, esi
call fcn.0041506d
lea eax, [ebp - 0x2f8]
push eax
call fcn.0041ba43
add edi, 0x280
mov esi, eax
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2dc]
cmp dword [esi + 0x278], 1
jle 0x404d59
push dword [esi + 0x294]
mov ecx, ebx
push dword [esi + 0x290]
push 3
pop edx
call fcn.004148a8
push dword [esi + 0x29c]
mov ecx, ebx
push dword [esi + 0x298]
push 4
pop edx
call fcn.004148a8
add esp, 0x10
cmp byte [ebp - 0x2ca], 0
jne 0x404e11
cmp dword [esi + 0x54], 4
je 0x404e11
cmp byte [esi + 0x26d], 0
mov edi, dword [ebp - 0x2d0]
jne 0x404d98
push dword [ebp - 0x2bc]
lea eax, [ebp - 0x2b8]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404df8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x2d4], eax
cmp eax, 0xb
je 0x404df4
cmp eax, 0x2732
jle 0x404db7
cmp eax, 0x2734
jle 0x404df4
push ecx
lea edx, [ebp - 0x138]
mov ecx, eax
call fcn.0041b637
pop ecx
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s
push ebx
call fcn.00416c42
mov eax, dword [ebp - 0x2d4]
mov edx, esi
push edi
mov ecx, ebx
mov dword [ebx + 0x958], eax
call fcn.00404fde
add esp, 0x14
push 7
pop eax
jmp 0x404e26
xor eax, eax
jmp 0x404dfe
mov eax, dword [ebp - 0x2e0]
test eax, eax
jne 0x404e26
mov ecx, dword [ebp - 0x2e4]
mov dword [esi + ecx*4 + 0x150], edi
jmp 0x404e26
mov ecx, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x2d0]
mov dword [esi + ecx*4 + 0x150], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret