Function at 0x492820
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x492851
cmp dword [ebp - 8], 0xffffffff
jne 0x492b23
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [ebp - 0x1d], al
movsx ecx, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp ecx, 0x20
jne 0x492873
jmp 0x492857
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
push 0x2e
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MSVCR90.dll_strchr
add esp, 8
test eax, eax
je 0x492b1a
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
push 0x5756c8
lea eax, [ebp - 0x28]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x2c]
mov al, byte [edx]
mov byte [ebp - 0x1d], al
movsx ecx, byte [ebp - 0x1d]
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
test ecx, ecx
je 0x4929ff
movsx eax, byte [ebp - 0x1d]
cmp eax, 0x2e
jne 0x4929ba
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
push 0x5756cc
lea eax, [ebp - 0x28]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x492925
push 0x5756d0
lea ecx, [ebp - 0x28]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x49294b
push 0x5756d4
lea edx, [ebp - 0x28]
push edx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x49294b
push 0x5756d8
lea eax, [ebp - 0x28]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
cmp dword [ebp - 0x30], 0
jne 0x492963
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0xc]
push edx
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x492991
cmp dword [ebp - 0x30], 1
jne 0x49297b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
jmp 0x492991
cmp dword [ebp - 0x30], 2
jne 0x492991
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
push 0x5756dc
lea edx, [ebp - 0x28]
push edx
call sub.MSVCR90.dll_strcpy
add esp, 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], 0
jmp 0x4929fa
movsx ecx, byte [ebp - 0x1d]
push ecx
call sub.MSVCR90.dll_isdigit
add esp, 4
test eax, eax
je 0x4929f8
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jle 0x4929e5
jmp 0x4929ff
mov ecx, dword [ebp - 0x18]
mov dl, byte [ebp - 0x1d]
mov byte [ecx], dl
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4929fa
jmp 0x4929ff
jmp 0x4928c4
cmp dword [ebp - 0x30], 3
jne 0x492a24
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 - 0x28]
push eax
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
cmp dword [ebp - 0x30], 3
jne 0x492b11
cmp dword [ebp - 0x34], 0
jl 0x492b11
cmp dword [ebp - 0x34], 0xc
jg 0x492b11
cmp dword [ebp - 8], 0
jne 0x492aa5
push 0x5756e0
lea edx, [ebp - 0xc]
push edx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x492aa5
push 0x5756e4
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x492aa5
push 0x5756e8
lea ecx, [ebp - 0x24]
push ecx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x492aa5
push 0x5756ec
lea edx, [ebp - 0x10]
push edx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x492aa5
mov dword [ebp - 4], 1
jmp 0x492b0f
cmp dword [ebp - 8], 0xffffffff
jne 0x492b08
push 0x5756f0
lea eax, [ebp - 0xc]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x492b08
push 0x5756f4
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x492b08
push 0x5756f8
lea edx, [ebp - 0x24]
push edx
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x492b08
push 0x5756fc
lea eax, [ebp - 0x10]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x492b08
mov dword [ebp - 4], 1
jmp 0x492b0f
mov dword [ebp - 4], 0
jmp 0x492b18
mov dword [ebp - 4], 0
jmp 0x492b21
mov dword [ebp - 4], 0
jmp 0x492b2a
mov dword [ebp - 4], 1
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret