Function at 0x441c22
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [0x57081c], 0xffffffff
push 0x570818
call fcn.004021b2
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [0x57081c]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x441c70
cmp dword [ebp - 0x1c], 1
je 0x441d51
cmp dword [ebp - 0x1c], 2
je 0x441d1e
jmp 0x441e49
mov ecx, dword [0x570820]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x441d19
mov edx, dword [ebp - 8]
push edx
call fcn.00401915
add esp, 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
and ecx, 0xfffffeff
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x34c], ecx
mov edx, dword [0x5d0780]
shr edx, 7
and edx, 1
test edx, edx
je 0x441cf7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x441cf7
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x34c], 0
je 0x441cdb
mov dword [ebp - 0x20], 0x5cccc0
jmp 0x441ce2
mov dword [ebp - 0x20], 0x5c6f00
mov edx, dword [ebp - 0x20]
push edx
push 0x4c9100
mov eax, dword [ebp - 8]
push eax
call fcn.004010af
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
and edx, 0x200
test edx, edx
jne 0x441d19
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x18]
or ecx, 0x80
mov edx, dword [ebp - 8]
mov dword [edx + 0x18], ecx
jmp 0x441e49
mov eax, dword [0x570820]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x441d4c
cmp dword [ebp - 0x14], 0
je 0x441d4c
push 4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x3c
push ecx
call fcn.0049d370
add esp, 0xc
jmp 0x441e49
mov edx, dword [0x570820]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x10], 0
je 0x441e28
cmp dword [ebp - 0x14], 0
je 0x441e28
push 4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x3c
push eax
call fcn.0049d370
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.00401550
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xfffffffe
je 0x441dea
cmp dword [ebp - 0x24], 0xffffffff
je 0x441dd4
cmp dword [ebp - 0x24], 0
je 0x441db7
jmp 0x441e07
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
push str.Connecting_to__s__s_.
call fcn.004014f1
add esp, 0xc
jmp 0x441e28
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
push str.Couldnt_connect_to__s.
call fcn.004014f1
add esp, 8
jmp 0x441e28
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x14]
push ecx
push str.Hostname__s_is_unknown_for_server__s_____.
call fcn.004014f1
add esp, 0xc
jmp 0x441e28
mov edx, dword [ebp - 0x18]
push edx
call fcn.004016a9
add esp, 4
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
push str.Connection_to__s_failed:__s
call fcn.004014f1
add esp, 0xc
cmp dword [ebp - 0x10], 0
jne 0x441e49
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x14]
push edx
push str.Hostname__s_is_unknown_for_server__s.
call fcn.004014f1
add esp, 0xc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
push ecx
push 0x4004667f
mov edx, dword [0x4c8af8]
push edx
call sub.WS2_32.dll_ioctlsocket
cmp eax, 0xffffffff
jne 0x441e73
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jle 0x441e83
cmp dword [ebp - 4], 0xa
jl 0x441c2f
mov esp, ebp
pop ebp
ret