Function at 0x6818f3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x681923
cmp dword [ebp - 8], 0xffffffff
jne 0x681c23
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 0x10], al
movsx ecx, byte [ebp - 0x10]
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp ecx, 0x20
jne 0x681945
jmp 0x681929
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
push 0x2e
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR80.dll_strchr]
add esp, 8
test eax, eax
je 0x681c1a
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], edx
push 0x774108
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0xc]
mov al, byte [edx]
mov byte [ebp - 0x10], al
movsx ecx, byte [ebp - 0x10]
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
test ecx, ecx
je 0x681aff
movsx eax, byte [ebp - 0x10]
cmp eax, 0x2e
jne 0x681a8d
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
push 0x77410c
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x6819f8
push 0x774110
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
jmp 0x681a1e
push 0x774114
lea edx, [ebp - 0x1c]
push edx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x681a1e
push 0x774118
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
cmp dword [ebp - 0x38], 0
jne 0x681a36
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR80.dll_strcpy
add esp, 8
jmp 0x681a64
cmp dword [ebp - 0x38], 1
jne 0x681a4e
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
jmp 0x681a64
cmp dword [ebp - 0x38], 2
jne 0x681a64
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x28]
push eax
call sub.MSVCR80.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
push 0x77411c
lea edx, [ebp - 0x1c]
push edx
call sub.MSVCR80.dll_strcpy
add esp, 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], 0
jmp 0x681afa
mov ecx, dword [sym.imp.MSVCR80.dll___mb_cur_max]
cmp dword [ecx], 1
jle 0x681aad
push 4
movsx edx, byte [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR80.dll__isctype]
add esp, 8
mov dword [ebp - 0x3c], eax
jmp 0x681ac5
movsx eax, byte [ebp - 0x10]
mov ecx, dword [sym.imp.MSVCR80.dll__pctype]
mov edx, dword [ecx]
xor ecx, ecx
mov cx, word [edx + eax*2]
and ecx, 4
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x681af8
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
jle 0x681ae5
jmp 0x681aff
mov ecx, dword [ebp - 0x18]
mov dl, byte [ebp - 0x10]
mov byte [ecx], dl
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x681afa
jmp 0x681aff
jmp 0x681997
cmp dword [ebp - 0x38], 3
jne 0x681b24
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call sub.MSVCR80.dll_strcpy
add esp, 8
cmp dword [ebp - 0x38], 3
jne 0x681c11
cmp dword [ebp - 0x30], 0
jl 0x681c11
cmp dword [ebp - 0x30], 0xc
jg 0x681c11
cmp dword [ebp - 8], 0
jne 0x681ba5
push 0x774120
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x681ba5
push 0x774124
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x681ba5
push 0x774128
lea ecx, [ebp - 0x28]
push ecx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x681ba5
push 0x77412c
lea edx, [ebp - 0x2c]
push edx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x681ba5
mov dword [ebp - 4], 1
jmp 0x681c0f
cmp dword [ebp - 8], 0xffffffff
jne 0x681c08
push 0x774130
lea eax, [ebp - 0x20]
push eax
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x681c08
push 0x774134
lea ecx, [ebp - 0x24]
push ecx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x681c08
push 0x774138
lea edx, [ebp - 0x28]
push edx
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x681c08
push 0x77413c
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCR80.dll_strcmp
add esp, 8
test eax, eax
jne 0x681c08
mov dword [ebp - 4], 1
jmp 0x681c0f
mov dword [ebp - 4], 0
jmp 0x681c18
mov dword [ebp - 4], 0
jmp 0x681c21
mov dword [ebp - 4], 0
jmp 0x681c2a
mov dword [ebp - 4], 1
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret