Function at 0x41ee55
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x46f008]
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 - 0x1d8], eax
mov edx, dword [ebp + 8]
mov byte [ebp - 0x1ca], al
lea eax, [ebp - 0x1d0]
push eax
or dword [edi + ecx*4 + 0x158], 0xffffffff
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1e4], ecx
mov ecx, ebx
push eax
mov dword [ebp - 0x1dc], edi
call fcn.0041f472
mov dword [ebp - 0x1e0], eax
pop ecx
pop ecx
test eax, eax
jne 0x41f1ab
mov edx, dword [ebp - 0x1bc]
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.0041e407
pop ecx
pop ecx
test al, al
jne 0x41ef19
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov esi, dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push ecx
lea edx, [ebp - 0x138]
mov ecx, esi
mov edi, eax
call fcn.0041a0b8
pop ecx
push eax
push dword [edi]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0041d6ad
mov edi, dword [ebp - 0x1dc]
add esp, 0x10
jmp 0x41f045
push dword [ebp - 0x1d4]
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s:_d...
push ebx
call fcn.0041d632
add esp, 0x10
cmp dword [ebp - 0x1c8], 2
je 0x41ef43
cmp dword [ebp - 0x1c8], 0x17
jne 0x41ef6d
cmp dword [ebp - 0x1c4], 1
jne 0x41ef6d
cmp byte [ebx + 0x727], 0
mov esi, dword [ebp - 0x1d0]
mov byte [ebp - 0x1c9], 1
je 0x41ef7a
mov edx, esi
mov ecx, ebx
call fcn.0041ed5e
jmp 0x41ef7a
mov esi, dword [ebp - 0x1d0]
mov byte [ebp - 0x1c9], 0
mov ecx, esi
call fcn.0041edc5
cmp byte [ebp - 0x1c9], 0
je 0x41ef9c
cmp byte [ebx + 0x730], 0
je 0x41ef9c
mov edx, esi
mov ecx, ebx
call fcn.0041dcb0
cmp dword [ebx + 0x1b8], 0
je 0x41efe7
mov dl, 1
mov ecx, ebx
call fcn.00419622
push 0
push esi
mov esi, dword [ebx + 0x1b8]
mov ecx, esi
push dword [ebx + 0x1bc]
call dword [0x4553fc]
call esi
add esp, 0xc
xor dl, dl
mov ecx, ebx
mov esi, eax
call fcn.00419622
cmp esi, 2
jne 0x41f037
mov byte [ebp - 0x1ca], 1
mov esi, dword [ebp - 0x1d0]
cmp dword [ebp - 0x1c8], 2
je 0x41eff9
cmp dword [ebp - 0x1c8], 0x17
jne 0x41f060
push ecx
push dword [ebp - 0x1c8]
mov edx, esi
mov ecx, ebx
call fcn.0041dedf
mov esi, eax
mov dword [ebp - 0x1e0], esi
pop ecx
pop ecx
test esi, esi
je 0x41f060
push dword [ebp - 0x1d0]
mov edx, edi
mov ecx, ebx
call fcn.0041f3fc
pop ecx
push 7
pop eax
cmp esi, 1
cmove esi, eax
mov eax, esi
jmp 0x41f1ab
test esi, esi
je 0x41efe1
mov dword [ebp - 0x1d8], 0x2a
push dword [ebp - 0x1d0]
mov edx, edi
mov ecx, ebx
call fcn.0041f3fc
mov eax, dword [ebp - 0x1d8]
pop ecx
jmp 0x41f1ab
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d4], 1
push eax
push 0x8004667e
push dword [ebp - 0x1d0]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp - 0x1f8]
push eax
call fcn.0043480b
add edi, 0x298
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 - 0x1dc]
cmp dword [esi + 0x294], 1
jle 0x41f0d9
push dword [esi + 0x2ac]
mov ecx, ebx
push dword [esi + 0x2a8]
push 3
pop edx
call fcn.0041941d
push dword [esi + 0x2b4]
mov ecx, ebx
push dword [esi + 0x2b0]
push 4
pop edx
call fcn.0041941d
add esp, 0x10
cmp byte [ebp - 0x1ca], 0
jne 0x41f196
cmp dword [esi + 0x58], 4
je 0x41f196
cmp byte [esi + 0x289], 0
mov edi, dword [ebp - 0x1d0]
jne 0x41f128
push dword [ebp - 0x1bc]
lea eax, [ebp - 0x1b8]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x41f128
mov eax, dword [ebp - 0x1e0]
test eax, eax
jne 0x41f1ab
jmp 0x41f187
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [ebp - 0x1d4], eax
sub ecx, 0xb
je 0x41f185
sub ecx, 0x2728
je 0x41f185
sub ecx, 1
je 0x41f185
push ecx
lea edx, [ebp - 0x138]
mov ecx, eax
call fcn.0041a0b8
pop ecx
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s
push ebx
call fcn.0041d632
mov eax, dword [ebp - 0x1d4]
mov edx, esi
push edi
mov ecx, ebx
mov dword [ebx + 0x970], eax
call fcn.0041f3fc
add esp, 0x14
push 7
pop eax
jmp 0x41f1ab
xor eax, eax
mov ecx, dword [ebp - 0x1e4]
mov dword [esi + ecx*4 + 0x158], edi
jmp 0x41f1ab
mov ecx, dword [ebp - 0x1e4]
mov eax, dword [ebp - 0x1d0]
mov dword [esi + ecx*4 + 0x158], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00450ca6
leave
ret