Function at 0x4bfff0
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 0x4c0021
cmp dword [ebp - 8], 0xffffffff
jne 0x4c02f3
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 0x4c0043
jmp 0x4c0027
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
push 0x2e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0040ac30
add esp, 8
test eax, eax
je 0x4c02ea
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 0x571a28
lea eax, [ebp - 0x28]
push eax
call fcn.004639c0
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 0x4c01cf
movsx eax, byte [ebp - 0x1d]
cmp eax, 0x2e
jne 0x4c018a
mov ecx, dword [ebp - 0x18]
mov byte [ecx], 0
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
push 0x571a2c
lea eax, [ebp - 0x28]
push eax
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x4c00f5
push 0x571a30
lea ecx, [ebp - 0x28]
push ecx
call fcn.004639c0
add esp, 8
jmp 0x4c011b
push 0x571a34
lea edx, [ebp - 0x28]
push edx
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x4c011b
push 0x571a38
lea eax, [ebp - 0x28]
push eax
call fcn.004639c0
add esp, 8
cmp dword [ebp - 0x30], 0
jne 0x4c0133
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.004639c0
add esp, 8
jmp 0x4c0161
cmp dword [ebp - 0x30], 1
jne 0x4c014b
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004639c0
add esp, 8
jmp 0x4c0161
cmp dword [ebp - 0x30], 2
jne 0x4c0161
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.004639c0
add esp, 8
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
push 0x571a3c
lea edx, [ebp - 0x28]
push edx
call fcn.004639c0
add esp, 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], 0
jmp 0x4c01ca
movsx ecx, byte [ebp - 0x1d]
push ecx
call fcn.004057b4
add esp, 4
test eax, eax
je 0x4c01c8
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 0x4c01b5
jmp 0x4c01cf
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 0x4c01ca
jmp 0x4c01cf
jmp 0x4c0094
cmp dword [ebp - 0x30], 3
jne 0x4c01f4
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 fcn.004639c0
add esp, 8
cmp dword [ebp - 0x30], 3
jne 0x4c02e1
cmp dword [ebp - 0x34], 0
jl 0x4c02e1
cmp dword [ebp - 0x34], 0xc
jg 0x4c02e1
cmp dword [ebp - 8], 0
jne 0x4c0275
push 0x571a40
lea edx, [ebp - 0xc]
push edx
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x4c0275
push 0x571a44
lea eax, [ebp - 0x1c]
push eax
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x4c0275
push 0x571a48
lea ecx, [ebp - 0x24]
push ecx
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x4c0275
push 0x571a4c
lea edx, [ebp - 0x10]
push edx
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x4c0275
mov dword [ebp - 4], 1
jmp 0x4c02df
cmp dword [ebp - 8], 0xffffffff
jne 0x4c02d8
push 0x571a50
lea eax, [ebp - 0xc]
push eax
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x4c02d8
push 0x571a54
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x4c02d8
push 0x571a58
lea edx, [ebp - 0x24]
push edx
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x4c02d8
push 0x571a5c
lea eax, [ebp - 0x10]
push eax
call fcn.004043e0
add esp, 8
test eax, eax
jne 0x4c02d8
mov dword [ebp - 4], 1
jmp 0x4c02df
mov dword [ebp - 4], 0
jmp 0x4c02e8
mov dword [ebp - 4], 0
jmp 0x4c02f1
mov dword [ebp - 4], 0
jmp 0x4c02fa
mov dword [ebp - 4], 1
push 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.00404070
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret