Function at 0x488f60
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 0x488f91
cmp dword [ebp - 8], 0xffffffff
jne 0x4892d8
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0xc], 0
xor edx, edx
mov word [ebp - 0xb], dx
mov byte [ebp - 9], dl
mov byte [ebp - 0x1c], 0
xor eax, eax
mov word [ebp - 0x1b], ax
mov byte [ebp - 0x19], al
mov byte [ebp - 0x24], 0
xor ecx, ecx
mov word [ebp - 0x23], cx
mov byte [ebp - 0x21], cl
mov byte [ebp - 0x10], 0
xor edx, edx
mov word [ebp - 0xf], dx
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
xor eax, eax
mov word [ebp - 0x27], ax
mov byte [ebp - 0x25], al
mov ecx, dword [ebp - 0x14]
mov dl, byte [ecx]
mov byte [ebp - 0x1d], dl
movsx eax, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp eax, 0x20
jne 0x489002
jmp 0x488fe6
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0x2e
mov eax, dword [ebp - 0x14]
push eax
call fcn.00401680
add esp, 0xc
test eax, eax
je 0x4892cf
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
push 0
push 0x51db94
lea edx, [ebp - 0x28]
push edx
call section..text
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx]
mov byte [ebp - 0x1d], dl
movsx eax, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x4891a2
movsx edx, byte [ebp - 0x1d]
cmp edx, 0x2e
jne 0x48915d
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
push 0
push 0x51dcc4
lea edx, [ebp - 0x28]
push edx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x4890bc
push 0
push 0x51dd9c
lea eax, [ebp - 0x28]
push eax
call section..text
add esp, 0xc
jmp 0x4890e6
push 0
push 0x51de20
lea ecx, [ebp - 0x28]
push ecx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x4890e6
push 0
push 0x51de24
lea edx, [ebp - 0x28]
push edx
call section..text
add esp, 0xc
cmp dword [ebp - 0x30], 0
jne 0x489100
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc]
push ecx
call section..text
add esp, 0xc
jmp 0x489132
cmp dword [ebp - 0x30], 1
jne 0x48911a
push 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x1c]
push eax
call section..text
add esp, 0xc
jmp 0x489132
cmp dword [ebp - 0x30], 2
jne 0x489132
push 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
call section..text
add esp, 0xc
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
push 0
push 0x51de28
lea ecx, [ebp - 0x28]
push ecx
call section..text
add esp, 0xc
lea edx, [ebp - 0x28]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x38], 0
jmp 0x48919d
movsx eax, byte [ebp - 0x1d]
push eax
call fcn.004772a0
add esp, 4
test eax, eax
je 0x48919b
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x38]
add edx, 1
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 3
jle 0x489188
jmp 0x4891a2
mov eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0x1d]
mov byte [eax], cl
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
jmp 0x48919d
jmp 0x4891a2
jmp 0x489057
cmp dword [ebp - 0x30], 3
jne 0x4891c9
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
push 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x10]
push eax
call section..text
add esp, 0xc
cmp dword [ebp - 0x30], 3
jne 0x4892c6
cmp dword [ebp - 0x34], 0
jl 0x4892c6
cmp dword [ebp - 0x34], 0xc
jg 0x4892c6
cmp dword [ebp - 8], 0
jne 0x489252
push 0
push 0x51de2c
lea ecx, [ebp - 0xc]
push ecx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x489252
push 0
push 0x51de30
lea edx, [ebp - 0x1c]
push edx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x489252
push 0
push 0x51de34
lea eax, [ebp - 0x24]
push eax
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x489252
push 0
push 0x51de38
lea ecx, [ebp - 0x10]
push ecx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x489252
mov dword [ebp - 4], 1
jmp 0x4892c4
cmp dword [ebp - 8], 0xffffffff
jne 0x4892bd
push 0
push 0x51de3c
lea edx, [ebp - 0xc]
push edx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x4892bd
push 0
push 0x51de40
lea eax, [ebp - 0x1c]
push eax
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x4892bd
push 0
push 0x51de44
lea ecx, [ebp - 0x24]
push ecx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x4892bd
push 0
push 0x51de48
lea edx, [ebp - 0x10]
push edx
call fcn.004013c0
add esp, 0xc
test eax, eax
jne 0x4892bd
mov dword [ebp - 4], 1
jmp 0x4892c4
mov dword [ebp - 4], 0
jmp 0x4892cd
mov dword [ebp - 4], 0
jmp 0x4892d6
mov dword [ebp - 4], 0
jmp 0x4892df
mov dword [ebp - 4], 1
push 0
push 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401990
add esp, 0x10
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret